Skip to content

3. Base Cell Properties

i_82 edited this page Mar 13, 2022 · 3 revisions

Base Cell is a plain cell with 3 universal components: textLabel, detailTextLabel and imageView, and not all of them will be used. Other XUI cells are inherit from Base Cell.

Key Type Description Flags Default
cell String cell type Required -
label String textLabel.text Optional, Localizable ""
defaults String configuration identifier Optional null
key String configuration key Required -
value Any? configuration value Optional null
default String configuration default value Optional null
icon String imageView.image = UIImage(named: icon)
imageView.image = UIImage(systemName: icon)
Optional null
readonly Boolean readonly state Optional false
height Number custom height of cell Optional 44.0
postNotification String notification name to be posted when value changes Optional XUINotificationEventValueChanged

If value == nil, then value = default.

Clone this wiki locally