Options
All
  • Public
  • Public/Protected
  • All
Menu

Class Controllers

An utility class for controllers.

Hierarchy

  • Controllers

Index

Methods

Methods

Static create

  • Returns a controller of the specified structure.

    var controller = Controllers.create({
        foo: "SString"
        component: {
            bar: "@NonNull SClass",
        }
    });
    
    console.log( controller.foo.get() ); // prints "null"
    
    controller.component.bar.set({ name: "Cardinal" });
    console.log( controller.component.bar.get().name ); // prints "Cardinal"
    throws

    Error if the specified structure contains unsupported type.

    Parameters

    Returns Controller

    a created controller

Generated using TypeDoc