Skip to main content

How to import custom elements schema?

How to import custom elements schema?

Importing custom elements schema allows an NgModule to contain non-Angular elements with dash case or element properties named with dash case.

To import CUSTOM_ELEMENTS_SCHEMA, add the following code to the file app.module.ts:

import {CUSTOM-ELEMENTS_SCHEMA} from '@angualar/core';
@NgModule({
  schemas: [ CUSTOM-ELEMENTS_SCHEMA ]
})
export class AppModule {}

How to browse files in collections in your custom plugin?

How to browse files in collections in your custom plugin?

After you have installed the Quark artifact PWC (Platform Web Components), do the following:

  • Import the collection browser component QppCollectionBrowseComponent from @quark/platform-components-ng.
  • To browse a collection, provide the collection id (selectedCollectionId) as an input to the collection browser component.

For more information, see the Collection Browse demo.

How to filter files in Asset Picker dialog based on content types?

How to filter files in Asset Picker dialog based on content types?

After you have installed the Quark artifact PWC (Platform Web Components), do the following:

  • Import the asset picker component QppAssetPickerComponent from @quark/platform-components-ng library to your application’s app.module.ts.
  • In the class AssetPickerConfig, provide the filterId, which is an input for the component to filter assets.
  • To filter any custom content type in the Asset Picker dialog, define the corresponding asset browser id in the file applicationservice/conf/asset-filters-ext.json using the following code snippet:
  • Pass the browser id in AssetPickerConfig to apply the filter for your custom content type.