Namespace: F

F

The main F namespace.
Properties:
Name Type Description
options Object Options for all F components.
Source:

Classes

CollectionComponent
Component
EventEmitter
FormComponent
ListComponent
ModelComponent
View

Methods

<static> addToSet(object, prop, Value)

Add a value to a property that should become an array when and only when collisions occurr
Parameters:
Name Type Description
object Object Object to set the property on
prop String Proprety to set
Value Mixed Value to set
Source:
To Do:
  • add pushToArray option to always push to an array

<static> extendView(component, properties) → {F.Component}

Extend the view of the provided component with a deep copy of the events property
Parameters:
Name Type Description
component Object Component whose view should be extended
properties String Properties to mix in to resulting view
Source:
To Do:
  • add pushToArray option to always push to an array
Returns:
this, chainable
Type
F.Component

<static> set(object, prop, prop, makeArrays) → {Object}

Set a property of an object using dot notiation
Parameters:
Name Type Description
object Object Optional object to set the property on. A new object will be created if no object was passed.
prop String Proprety to set
prop Value The new value
makeArrays Boolean Use F.addToSet on the property to
Source:
To Do:
  • add push option to always push to an array
Returns:
Object the property was set on or the created object
Type
Object