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

Reuse

Extends:

models/base~Model → Reuse

Method Summary

Public Methods
public

fetch(ident: String): Dataset

Fetch a reuse given its identifier, either an ID or a slug.
public

save()

Create or update the given reuse
public

update(data: *)

Public Methods

public fetch(ident: String): Dataset source

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

Params:

NameTypeAttributeDescription
ident String

The reuse identifier to fetch.

Return:

Dataset

The current object itself.

public save() source

Create or update the given reuse

public update(data: *) source

Params:

NameTypeAttributeDescription
data *