• Explains

              • Info

              • Reference

              • Terms

              • x.TabHead

                ECBOOK.prototype.TabHead( name [, div ] )

                name : string ~ tab name defined in RSD
                div : $dom of the form (default is .Form())

                Get tab header dom by the tab name.

              • x.Table

              • x.TableBody

              • x.TableButton

                ECBOOK.prototype.TableButton( names )

                names : array of string | space joined string : name list of form buttons
                return value : jQuery wrapped dom ~ buttons

                Get table button dom listed in the names.

              • x.TableHead

              • x.Tbody

                ECBOOK.prototype.Tbody( name, div )

                name : string ~ tab name defined in RSD
                div : $dom of the form (default is .Form())

                Get body dom of a tab.

              • x.Thead

                ECBOOK.prototype.Thead( name, div )

                name : string ~ tab name defined in RSD
                div : $dom of the form (default is .Form())

                Get header dom of a tab.

              • x.TitleBar

                ECBOOK.prototype.TitleBar([ div ])

                div : $dom of the form (default is .Form())
                return value : jQuery wrapped dom

                Get title-bar object of the form using selector 'div.ui-dialog-titlebar'

              • x.UndoForm

              • x.UpdateTable

                ECBOOK.prototype.UpdateTable()

                Redraws the list table.

              • x.Value

                ECBOOK.prototype.Value( id [, value ])

                id : string ~ element id defined in RSD
                value: 3em>undefined or value to set into the element
                return value: <Getter> element value
                       <Setter> ECBOOK instance (=this)

                Gets/Sets the value from/to the element in the form.
                You can also get or set all values of the element in matrix at once.
                This function works as Getter when the 2nd argument is 3em>undefined,
                and it works as Setter when defined.

                Getter
                // inline element
                x.Value('name');
                // matrix element
                x.Value('members[name][2]'); // returns a value in matrix
                x.Value('members[name]'); // returns an array of values
                /** Here x is ECBOOK instance. */
                Setter
                // inline element
                x.Value('name', 'John');
                // matrix element
                x.Value('members[name][2]', 'Mary');
                x.Value('members[name]', ['Sazae', 'Katsuo', 'Wakame']);
                /** Here x is ECBOOK instance. */

                notes :
                If the form of the BOOK has not been created, this function may work incorrectly.
                Getter works as well as ECBOOK.prototype.GetValue.
                Setter works as well as
                ECBOOK.prototype.PutValue.

              • x.Values

                ECBOOK.prototype.Values( id )

                id: string ~ element id defined in RSD
                return value: the displayed value of the element

                Gets the displayed value of the element.

                notes : Call of [ECBOOK.prototype.value] returns the value with internal data type.

              • x.View

                ECBOOK.prototype.View( id [, options ])

                id : string ~ id of document
                options : object ~ option to make a view.

                Make a view of document in a dialog.

                options : acceptable keys

                • title : string ~ title name (in title bar)
                • width : number ~ view width[px]
                • height : number ~ view height[px]
                • left : number ~ position left(x)[px]
                • top : number ~ position top(y)[px]
              • x.WriteDOM

                ECBOOK.prototype.WriteDOM( $input, value )

                $input: jQuery ~ target dom element
                value: the value to set to dom element
                return value: ECBOOK instance (=this)

                Sets the value of input element.

              • x.WriteForm

              • x.writable

                ECBOOK.prototype.writable([ prop ])

                prop : object ~ access status (default is write_access value of this BOOK)
                return value : boolean ~ writable or not

                Check writable or not by comparing user's privileges.
                The key "constant" is read from prop when given.