Bitsmist Frameworks
Docs » OrganizerOrganizer

OrganizerOrganizer

Inherit:Organizer

Overview

OrganizerOrganizer manages organizers. It applies organizers and initializes them, and calls them at particular timings.

Organizing

At the initialization stage, it loads settings from the “organizers” section and applies organizers to the component. Also, it applies organizers that are linked to the section name in the settings.

Sections

  • organizers

Timings

  • All

Settings

Organizer settings are placed in the “organizers” section.

Syntax:

{
    "organizers": {
        <organizerName>: {
            "attach": <attach>
        }
    },
}

organizerName

Type:String

An organizer name. This is the same as the organizer's class name.

attach

Type:Boolean

Attached to a component if True.

Extended Properties

organizers

Type:Object Inject:Component get

Returns an object that holds organizers attached to the component.

Extended Method

callOrganizers(condition, settings)

Type:undefined Inject:Component Asynchronous

Calls organizers applied to a component to start organizing.

Each organizer is called synchronously, it waits for the preceding organizer to finish organizing and then starts the next one.

Parameters

ParameterTypeDescription
conditionStringA string that describes the timing this organizer is called. Ex. ”afterStart”、”afterAppend”, etc.
settingsObjectSettings that will be passed to each organizer.

Return Value

undefined

initOrganizers(settings)

Type:undefined Inject:Component Asynchronous

Loads organizers and initializes them according to the settings given.

Each organizer is initialized synchronously, it waits for the preceding organizer to finish initializing then starts the next one.

Parameters

ParameterTypeDescription
settingsObjectSettings used to attach organizers. Also passed to each organizer for their initialization.

Return Value

undefined

Previous Next

© 2019-2023 Masaki Yasutake

Bitsmist Frameworks

Table of Contents

Table of Contents

  • OrganizerOrganizer
    • Overview
    • Organizing
    • Settings
      • organizerName
      • attach
    • Extended Properties
      • organizers
    • Extended Method
      • callOrganizers(condition, settings)
      • initOrganizers(settings)

GENERAL

  • Overview
  • Installation
  • Create a sample component

COMPONENT

  • Loading
  • Settings
  • Events
  • Extending with organizers

REFERENCE - COMPONENT

  • Component

REFERENCE - ORGANIZER

  • EventOrganizer
  • LoaderOrganizer
  • OrganizerOrganizer
  • SettingOrganizer
  • StateOrganizer
  • TemplateOrganizer

REFERENCE - STORE

  • Store
  • ChainableStore

REFERENCE - UTILITY

  • AjaxUtil
  • ClassUtil
  • Util