Giter Club home page Giter Club logo

Comments (6)

renrizzolo avatar renrizzolo commented on August 24, 2024

@Zilleabbas10 to open it you can use a ref

<SectionedMultiSelect
  ref={ref => this.SectionedMultiSelect = ref}
/>

and the _toggleSelector() function will open/close it, so you can just fire it when your component has mounted:

componentDidMount() {
 // programatically opening the select
 this.SectionedMultiSelect._toggleSelector();
}

As for the styles, how you're doing it works for me. Is it not styling it at all?

from react-native-sectioned-multi-select.

Zilleabbas10 avatar Zilleabbas10 commented on August 24, 2024

this.SectionedMultiSelect._toggleSelector();
@renrizzolo this line open modal programatically. but i want to open dropdowns by default that are used in this modal.

And styles work for me now

from react-native-sectioned-multi-select.

renrizzolo avatar renrizzolo commented on August 24, 2024

@Zilleabbas10 sorry, I misread the question.
Let me have a look, there's no way to do this at the moment.

from react-native-sectioned-multi-select.

Zilleabbas10 avatar Zilleabbas10 commented on August 24, 2024

@renrizzolo No problem. I have figure it out by looking its documentation
showDropDowns={false}
By adding this parameter DropDowns are shown by default.
But still there needs to be improvement that when Dropdowns are open by default, then there is no option fot closing any select if we want close any select. There should be option to close any select as we have option initially without using the parameter i mentioned above..

from react-native-sectioned-multi-select.

renrizzolo avatar renrizzolo commented on August 24, 2024

when Dropdowns are open by default, then there is no option fot closing any select if we want close any select.

@Zilleabbas10 Sorry I don't quite understand what you mean by this.

showDropDowns={false} will remove the ability to expand the dropdowns, so the sub items will always be shown.

Do you instead want the dropdowns to all be expanded when showDropDowns={true}?

from react-native-sectioned-multi-select.

Zilleabbas10 avatar Zilleabbas10 commented on August 24, 2024

yes i want to open select dropdowns by default when showDropDowns={true}

from react-native-sectioned-multi-select.

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.