ULOS Manual Pages - wm.item(3) | Back

NAME
  wm.item - A library for widget manipulation

DESCRIPTION
  This library provides basic widget support.  For textboxes, see wm.textbox(({3}).

  This library returns one function, which takes a few parameters and returns an object.

    function(window:table): table
      Creates a new items object over the specified window and returns it.

  Along with all methods provided by an app (excepting :close()) - the following exclusive method is provided in the returned items object:
    
    :add(item:table)
      Adds another item to the items object.  The provided item must have at least x, y, w, h, and text fields.  The text field may be either a string or a table of strings.  Alternatively, if the item has a :refresh() field, it will be called during the items object's :refresh() process.

COPYRIGHT
  ULOS Window Manager copyright (c) 2021 Ocawesome101 under the DSLv2.

REPORTING BUGS
  Please report bugs at https://github.com/ocawesome101/oc-ulos/issues.