Home Identifier Source Test Repository
public class | source

BasedOption

Extends:

src/base~Base → BasedOption

Implements options set and get logic

Member Summary

Private Members
private

Options hash

Method Summary

Public Methods
public

getOption(name: String): *

Returns option value by given option name

public

setOption(options: Object, name: String, defaultValue: *): BasedOption

Sets value to options model for given option field name

Private Members

private _options: Object source

Options hash

Public Methods

public getOption(name: String): * source

Returns option value by given option name

Params:

NameTypeAttributeDescription
name String

of option

Return:

*

public setOption(options: Object, name: String, defaultValue: *): BasedOption source

Sets value to options model for given option field name

Params:

NameTypeAttributeDescription
options Object

— configuration object

name String

name of option field

defaultValue *

option default value

Return:

BasedOption