Skip to content

Use the (awesome) DZNEmptyDataSet library in your Titanium iOS projects.

License

Notifications You must be signed in to change notification settings

hansemannn/titanium-empty-state

Repository files navigation

Titanium Empty State

Use the (awesome) 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, #376, #370).

Screenshots_Row1 Screenshots_Row2

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 / Web)