Comments (6)
@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.
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.
@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.
@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.
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.
yes i want to open select dropdowns by default when showDropDowns={true}
from react-native-sectioned-multi-select.
Related Issues (20)
- can i use this with expo? HOT 3
- Disable the entire control? HOT 2
- Separate parentSelectedItems and subSelectedItems HOT 4
- Styling the Overall Modal?
- onSelectedItemsChange the Model is getting closed HOT 2
- display more level subItem HOT 2
- Disable backdrop HOT 1
- Disabled items getting removed HOT 2
- Expand dropdown function? HOT 4
- How to hide keyboard during search? HOT 3
- Hide the list of options until user enters a search item HOT 2
- How can you limit items selected while still allowing items to be deselected after the maxItems has been reached? HOT 2
- Checkmark is not visible when an item is selected HOT 8
- How is selectedItems supposed to work? HOT 3
- README.md IconRenderer Typo HOT 4
- Request: Styles Image Labeling ? HOT 3
- Add multiple display keys HOT 5
- Cancel Button does NOT Apprear Correctly on iOS HOT 4
- Adding Accessibility Labels HOT 5
- Display the component in a row along with other components HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from react-native-sectioned-multi-select.