Mindon.IDEA

Air off, Mind on ~ / Javascript+Golang, Sci, Health… /

A UI Unit

What kind of basic abilities should be with an UI unit?

As a web developer, an UI includes: Data, DOM, CSS, JavaScript.

That’s Data, Data Container, Display Style, Interactions.

First, an UI needs datum: 1) Static data; 2) Dynamic data [Optional]

For dynamic data, it needs these abilities:

  1. Receive initialization data, it may be tranfered from another UI unit.

  2. Transfer data to another UI unit;

  3. Subscribe data changes;

  4. Publish data changes.

Interactions may change datum, data containers or styles.

  1. UI enter/exit events

  2. UI active/disactive events

Comments