kirin-808
12/17/2024, 10:39 PMkevinb989
12/18/2024, 4:36 AMKaspar Boel Kjeldsen
12/18/2024, 5:58 AMKaspar Boel Kjeldsen
12/18/2024, 5:59 AMjson
{
type: 'ufmComponent',
alias: 'My.CustomUfmComponent',
name: 'My Custom UFM Component',
api: () => import('./components/my-custom.component.js'),
meta: {
alias: 'myCustom'
}
}
js
import { UmbUfmComponentBase } from '@umbraco-cms/backoffice/ufm';
export class MyCustomUfmComponentApi extends UmbUfmComponentBase {
render(token: Tokens.Generic) {
// You could do further regular expression/text processing here!
return `<ufm-custom-component text="${token.text}"></ufm-custom-component>`;
}
}
export { MyCustomUfmComponentApi as api };
kevinb989
12/18/2024, 4:23 PMkirin-808
12/19/2024, 1:54 PM