Giter Site home page Giter Site logo

is there anyway to expand only cell at a time? if a cell is already expanded, and user tries to expand another cell, the first cell should be collapsed and the new cell should be expanded about hvtableview HOT 6 CLOSED

innovian avatar innovian commented on July 23, 2024
is there anyway to expand only cell at a time? if a cell is already expanded, and user tries to expand another cell, the first cell should be collapsed and the new cell should be expanded

from hvtableview.

Comments (6)

xerxes235 avatar xerxes235 commented on July 23, 2024

Yes there's an expandOnlyOneCell property for the HVTableView which you can set it to true. You will get only one cell expanded at the same time.

Sent from my iPhone

On Feb 14, 2016, at 9:08 AM, Rj Saadi [email protected] wrote:


Reply to this email directly or view it on GitHub.

from hvtableview.

Rj707 avatar Rj707 commented on July 23, 2024

Thanks, I got that point from your sample project, where you have put some
documentation before code.
On Feb 16, 2016 9:19 AM, "Hamidreza Vakilian" [email protected]
wrote:

Yes there's an expandOnlyOneCell property for the HVTableView which you
can set it to true. You will get only one cell expanded at the same time.

Sent from my iPhone

On Feb 14, 2016, at 9:08 AM, Rj Saadi [email protected] wrote:


Reply to this email directly or view it on GitHub.


Reply to this email directly or view it on GitHub
#19 (comment)
.

from hvtableview.

Rj707 avatar Rj707 commented on July 23, 2024

I need your help in another library, ill b very thankful to you, if you
could. I wan the same behaviour(expanding only one cell at a time) for
vppdropdown, so tell me whats the logic behing expanding only one cell. Its
urgent. And thanks once again
On Feb 16, 2016 9:19 AM, "Hamidreza Vakilian" [email protected]
wrote:

Yes there's an expandOnlyOneCell property for the HVTableView which you
can set it to true. You will get only one cell expanded at the same time.

Sent from my iPhone

On Feb 14, 2016, at 9:08 AM, Rj Saadi [email protected] wrote:


Reply to this email directly or view it on GitHub.


Reply to this email directly or view it on GitHub
#19 (comment)
.

from hvtableview.

xerxes235 avatar xerxes235 commented on July 23, 2024

It's easy; HVTableView collapses the recent expanded cell and expands a new one

Sent from my iPhone

On Feb 19, 2016, at 2:31 PM, Rj Saadi [email protected] wrote:

I need your help in another library, ill b very thankful to you, if you
could. I wan the same behaviour(expanding only one cell at a time) for
vppdropdown, so tell me whats the logic behing expanding only one cell. Its
urgent. And thanks once again
On Feb 16, 2016 9:19 AM, "Hamidreza Vakilian" [email protected]
wrote:

Yes there's an expandOnlyOneCell property for the HVTableView which you
can set it to true. You will get only one cell expanded at the same time.

Sent from my iPhone

On Feb 14, 2016, at 9:08 AM, Rj Saadi [email protected] wrote:


Reply to this email directly or view it on GitHub.


Reply to this email directly or view it on GitHub
#19 (comment)
.


Reply to this email directly or view it on GitHub.

from hvtableview.

Rj707 avatar Rj707 commented on July 23, 2024

AOA Hamid!
i have a question. is there a way to navigate to the
other view controller when clicking on collapsed/expanded cell. as
HVTableView didselectrowatindexpath method expands/collapses the cell.
Thanks

On Sat, Feb 20, 2016 at 4:52 AM, Hamidreza Vakilian <
[email protected]> wrote:

It's easy; HVTableView collapses the recent expanded cell and expands a
new one

Sent from my iPhone

On Feb 19, 2016, at 2:31 PM, Rj Saadi [email protected] wrote:

I need your help in another library, ill b very thankful to you, if you
could. I wan the same behaviour(expanding only one cell at a time) for
vppdropdown, so tell me whats the logic behing expanding only one cell.
Its
urgent. And thanks once again
On Feb 16, 2016 9:19 AM, "Hamidreza Vakilian" [email protected]
wrote:

Yes there's an expandOnlyOneCell property for the HVTableView which you
can set it to true. You will get only one cell expanded at the same
time.

Sent from my iPhone

On Feb 14, 2016, at 9:08 AM, Rj Saadi [email protected]
wrote:


Reply to this email directly or view it on GitHub.


Reply to this email directly or view it on GitHub
<
https://github.com/xerxes235/HVTableView/issues/19#issuecomment-184509578>
.


Reply to this email directly or view it on GitHub.


Reply to this email directly or view it on GitHub
#19 (comment)
.

from hvtableview.

xerxes235 avatar xerxes235 commented on July 23, 2024

Create a UITapGestureRecognizer for the cell.contentView. By capturing the taps from the cell with a gesturerecognizer, the default didSelectRowAtIndexPath won't be called. You can push the new vc from that event.

from hvtableview.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.