https://github.com/hansemannn/titanium-empty-state
Use the (awesome) DZNEmptyDataSet library in your Titanium iOS projects.
https://github.com/hansemannn/titanium-empty-state
appcelerator emptystate javascript native titanium
Last synced: about 1 year ago
JSON representation
Use the (awesome) DZNEmptyDataSet library in your Titanium iOS projects.
- Host: GitHub
- URL: https://github.com/hansemannn/titanium-empty-state
- Owner: hansemannn
- License: mit
- Created: 2018-04-01T10:32:03.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2018-07-13T00:10:10.000Z (almost 8 years ago)
- Last Synced: 2025-03-29T01:12:03.644Z (about 1 year ago)
- Topics: appcelerator, emptystate, javascript, native, titanium
- Language: Objective-C
- Size: 248 KB
- Stars: 7
- Watchers: 3
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Titanium Empty State
Use the (awesome) [DZNEmptyDataSet](https://github.com/dzenbot/DZNEmptyDataSet) library in your Titanium iOS projects. Once imported, it can be used on
any Ti.UI.TableView and Ti.UI.ListView by simply using the `placeholder` dictionary property.
⚠️ Custom views are currently unsupported due to an issue in the native library ([#384](https://github.com/dzenbot/DZNEmptyDataSet/issues/384), [#376](https://github.com/dzenbot/DZNEmptyDataSet/issues/376), [#370](https://github.com/dzenbot/DZNEmptyDataSet/issues/370)).


## APIs
### Properties
#### `placeholder` (Dictionary)
- `title` (Ti.UI.AttributedString)
- `description` (Ti.UI.AttributedString)
- `image` (String)
- `buttonTitle` (String)
- `buttonImage` (String)
- `backgroundColor` (String)
- `scrollEnabled` (String)
### Methods
#### `togglePlaceholder(show)`
Passing `true` will **show** the placeholder, passing `false` will **hide** it.
### Events
#### `placeholderclick`
- `clicksource` ("button" or "image")
## Example
Please check out the example for a brief API documentation!
## License
MIT
## Build from Source
`appc run -p ios --build-only`
## Author
Hans Knöchel ([@hansemannnn](https://twitter.com/hansemannnn) / [Web](http://hans-knoechel.de))