🟩assign

CLIENT

:assign( ᡗᡉˣᡗ id, ᡃⁿʸ data)

β–Έ Parameters

str id id used for object's data

any data data to attach

β–Έ Description

Attaches data to a specified panel

β–Έ Example

/*
*   panel
*/

local cat          = ui.rlib( mod, 'category', self.scr    )
:assign            ( 'name', 'Ammo'                        )

/*
*   print example
*/

print( cat.name )
> 'Ammo'

Last updated