Home Reference Source
import Directory from 'vibejs/src/directory/Directory.js'
public class | source

Directory

Constructor Summary

Public Constructor
public

constructor(name: string, options: Object, store: EntityStore)

Create directory

Member Summary

Public Members
public

Computed values declared in constructor

public

Methods declared in constructor

public

name: *

Directory name

public

state: {}

Local state

public

Directory structure

Private Members
private

Subject of this directory

Method Summary

Public Methods
public

clear()

Clear local state and initialise default

public

Return DirectorySubject of this directory

Private Methods
private

_initialState(structure: Object, state: *)

Initialise state

Public Constructors

public constructor(name: string, options: Object, store: EntityStore) source

Create directory

Params:

NameTypeAttributeDescription
name string

directory name

options Object

structure, computed, mutations

store EntityStore

EntityStore instance

See:

Public Members

public computed: * source

Computed values declared in constructor

public mutations: * source

Methods declared in constructor

public name: * source

Directory name

public state: {} source

Local state

public structure: * source

Directory structure

Private Members

private _subject: * source

Subject of this directory

Public Methods

public clear() source

Clear local state and initialise default

public observe(): DirectorySubject source

Return DirectorySubject of this directory

Private Methods

private _initialState(structure: Object, state: *) source

Initialise state

Params:

NameTypeAttributeDescription
structure Object

structure to translate

state *

state where to write