Home Reference Source Repository
import CommunityResource from 'udata/js/models/communityresource.js'
public class | source

CommunityResource

Extends:

models/base~Model → CommunityResource

Method Summary

Public Methods
public
Fetch a community resource given its identifier, either an ID or a slug.
public

save()

Create or update the given community resource
public

update(data: *)

Public Methods

public fetch(ident: String): CommunityResource source

Fetch a community resource given its identifier, either an ID or a slug.

Params:

NameTypeAttributeDescription
ident String

The community resource identifier to fetch.

Return:

CommunityResource

The current object itself.

public save() source

Create or update the given community resource

public update(data: *) source

Params:

NameTypeAttributeDescription
data *