You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
mfile-www implements a number of "widgets", or primitives such as dform, dmenu, etc. for displaying "pages of content" and accepting user input.
With the advent of the target stack, there is a need to standardize how the "content" is provided to the widget. It will be good if each widget expects to receive an object. The exact contents of the object will differ from widget to widget, but it will be an object.
The start method of each primitive will take two arguments:
the content object, called "state"
an optional options object, called "opts"
When stack.push or stack.pop is called, the caller will provide these two arguments, and stack.push/pop will pass them on to the widget's start function.
If no state is given on stack.pop() - i.e. state === undefined - the state will be taken from the stack.
dmenu
dform
dbrowser
dnotice
dtable
drowselect
The text was updated successfully, but these errors were encountered:
No matter what the primitive (dmenu, dform, dtable etc.), the start
function takes two arguments: state and opts.
References: #20
Signed-off-by: Nathan Cutler <[email protected]>
mfile-www implements a number of "widgets", or primitives such as dform, dmenu, etc. for displaying "pages of content" and accepting user input.
With the advent of the target stack, there is a need to standardize how the "content" is provided to the widget. It will be good if each widget expects to receive an object. The exact contents of the object will differ from widget to widget, but it will be an object.
The start method of each primitive will take two arguments:
When stack.push or stack.pop is called, the caller will provide these two arguments, and stack.push/pop will pass them on to the widget's start function.
If no state is given on stack.pop() - i.e.
state === undefined
- the state will be taken from the stack.The text was updated successfully, but these errors were encountered: