API Reference 0.7.1rikulo_view_implViewConfig

ViewConfig class

The configuration of views.

class ViewConfig {
 /** The prefix used for the default style class of a view.
  *
  * Default: "v-".
  */
 String classPrefix = "v-";
 /** The prefix used for [View.uuid].
  *
  * Default: an unique string in a window to avoid conficts among
  * multiple Rikulo applications in the same page, if any.
  */
 String uuidPrefix = "v_";

 ViewConfig() {
   final int appid = ViewUtil.appId;
   if (appid > 0)
     uuidPrefix = "${StringUtil.encodeId(appid, 'v')}_";
 }
}

Constructors

new ViewConfig() #

Creates a new Object instance.

Object instances have no meaningful state, and are only useful through their identity. An Object instance is equal to itself only.

docs inherited from Object
ViewConfig() {
 final int appid = ViewUtil.appId;
 if (appid > 0)
   uuidPrefix = "${StringUtil.encodeId(appid, 'v')}_";
}

Properties

String classPrefix #

The prefix used for the default style class of a view.

Default: "v-".

String classPrefix = "v-"

String uuidPrefix #

The prefix used for View.uuid.

Default: an unique string in a window to avoid conficts among multiple Rikulo applications in the same page, if any.

String uuidPrefix = "v_"