https://github.com/m1ga/ti.bottomsheet
https://github.com/m1ga/ti.bottomsheet
android bottomsheet titanium-mobile titanium-module
Last synced: about 1 month ago
JSON representation
- Host: GitHub
- URL: https://github.com/m1ga/ti.bottomsheet
- Owner: m1ga
- License: mit
- Created: 2021-11-12T12:57:16.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2023-03-30T14:00:46.000Z (about 2 years ago)
- Last Synced: 2025-03-29T01:12:58.582Z (about 2 months ago)
- Topics: android, bottomsheet, titanium-mobile, titanium-module
- Language: Java
- Homepage:
- Size: 2.06 MB
- Stars: 2
- Watchers: 1
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Ti.BottomSheet & Ti.BottomSheetDialog for Android
for the iOS version have a look here: [ti.bottomsheetcontroller-ios](https://github.com/mbender74/ti.bottomsheetcontroller-ios).
__work in progress__ methods/properties/events might change before the first release.
## Example
```xml
```
```js
$.bs.open();
$.bsd.open();
```## BottomSheet
Can be used for a peaking view at the bottom that can be extended.
### Methods
* show() or open()
* hide()
* toggle()
* add()### Properties
* peakHeight
* dimAmount (dialog only, creation only)### Events
* open
* close
* stateChanged: e.state (see Constants)### Constants
* BottomSheet.STATE_DRAGGING
* BottomSheet.STATE_SLIDING
* BottomSheet.STATE_OPEN
* BottomSheet.STATE_PEAK
* BottomSheet.STATE_CLOSE---
## BottomSheetDialogThe dialog version will dimm the background when it is shown.
### Methods
* show() or open()
* hide() or close()
* add()### Properties
* backgroundColor
* borderRadius
* cancelable
* peakHeight### Events
* dismissed
* open
* close
* stateChanged: e.state (see Constants)
* peak### Constants
* BottomSheet.STATE_DRAGGING
* BottomSheet.STATE_SLIDING
* BottomSheet.STATE_OPEN
* BottomSheet.STATE_PEAK
* BottomSheet.STATE_CLOSE