Class AssetSelectorComponent
Represents assets selector form component.
[ComponentAttribute(typeof(AssetSelectorComponentAttribute))]
public sealed class AssetSelectorComponent : FormComponent<AssetSelectorProperties, AssetSelectorClientProperties, IEnumerable<AssetRelatedItem>>, IFormComponent, IFormItem<IFormComponentClientProperties>, IFormItem
- Inheritance
-
objectFormComponent<AssetSelectorProperties, AssetSelectorClientProperties, IEnumerable<AssetRelatedItem>>AssetSelectorComponent
- Implements
- Inherited Members
- Extension Methods
Constructors
AssetSelectorComponent(ILocalizationService, ISettingsService, IAssetItemMapper)
Initializes a new instance of AssetSelectorComponent.
public AssetSelectorComponent(ILocalizationService localizationService, ISettingsService settingsService, IAssetItemMapper assetItemMapper)
Parameters
localizationService
ILocalizationServiceLocalization service.
settingsService
ISettingsServiceSettings service.
assetItemMapper
IAssetItemMapperAsset item mapper.
Fields
IDENTIFIER
Represents the AssetSelectorComponent identifier.
public const string IDENTIFIER = "Kentico.Administration.AssetSelector"
Field Value
- string
Properties
ClientComponentName
Name of the front-end type implementing the UI form component.
public override string ClientComponentName { get; }
Property Value
- string
Methods
ConfigureClientProperties(AssetSelectorClientProperties)
Configures the form component client properties.
protected override Task ConfigureClientProperties(AssetSelectorClientProperties clientProperties)
Parameters
clientProperties
AssetSelectorClientPropertiesThe current instance of the form component client properties.
Returns
- Task
Remarks
Override this method in order to configure form component client properties.
ConfigureComponent()
Configures the form component. This method is called when all form component properties are set.
protected override void ConfigureComponent()
Remarks
Override this method to set component inner state, like additional component validation rules.
LoadAssetFolders(LoadAssetFoldersCommandArguments)
Loads assets folders.
public Task<ICommandResponse<LoadAssetFoldersResult>> LoadAssetFolders(LoadAssetFoldersCommandArguments args)
Parameters
Returns
LoadAssetItems(LoadAssetItemsCommandArguments)
Loads assets panel items.
public Task<ICommandResponse<LoadAssetItemsResult>> LoadAssetItems(LoadAssetItemsCommandArguments args)
Parameters
Returns
LoadAssetLibraries()
Loads assets libraries.
public Task<ICommandResponse<LoadAssetLibrariesResult>> LoadAssetLibraries()
Returns
UploadAssets(UploadAssetsCommandArguments)
Upload files to media library.
public Task<ICommandResponse<UploadAssetsCommandResult>> UploadAssets(UploadAssetsCommandArguments args)
Parameters
args
UploadAssetsCommandArgumentsUpload command arguments.