Home Manual Reference Source
public class | source

CrudSetItemBase

Extends:

ResourceBaseCrudBase → CrudSetItemBase

Direct Subclass:

Dimension, Font, Svg

Items that are part of a set

Static Member Summary

Static Public Members
public static get

Get the parent key

Constructor Summary

Public Constructor
public

constructor(api: Maps4News, data: Object<String, *>)

Member Summary

Public Members
public get

Get the parent id

Inherited Summary

From class ResourceBase
public static get

Returns if the resource is readonly

public static get abstract

Resource name

public static get

Resource path template

public static get

Returns the url key of the resource

protected static get

Protected read-only fields

public get

Get api instance

public set

api(value: Maps4News)

Set the api instance

public get

Auto generated Resource base url

public get

List fields that contain object data

public get

If the resource can be owned by an organisation

public get

url: string: *

Auto generated resource url

public

Clone the object

public

async refresh(updateSelf: Boolean): Promise<ResourceBase>

Refresh the resource by requesting it from the server again

public

reset(fields: Array<string> | string | null)

Resets model instance to it's original state

public

Clean up instance and commit all changes locally.

public

static(Target: string | function, Constructor: function, seedData: Object<string, *>): SimpleResourceProxy

Static proxy generation

public

toObject(camelCaseKeys: boolean): {}

Transform instance to object

public

String representation of the resource, similar to Python's repr

protected

Macro for resource listing

protected

Moves new fields to this._properties and turns them into a getter/setter

From class CrudBase
public

async delete(updateSelf: Boolean): Promise<CrudBase>

Delete item

public

async restore(updateSelf: Boolean): Promise<CrudBase>

Restore item

public

Save item.

protected

Build data for create operation

Static Public Members

public static get parentKey: string: * source

Get the parent key

Return:

string

Parent key

Public Constructors

public constructor(api: Maps4News, data: Object<String, *>) source

Override:

CrudBase#constructor

Params:

NameTypeAttributeDescription
api Maps4News

Api instance

data Object<String, *>

Item data

Public Members

public get parentId: number | undefined: * source

Get the parent id

Return:

number | undefined (nullable: true)

Parent number