class documentation

class ACMEContainerResourceServices(Container):

Constructor: ACMEContainerResourceServices(id)

View In Hierarchy

The Services view for the ACME text UI.

Method __init__ Initialize the view.
Method compose Compose the view.
Method copyInstances Callback to copy the current resource's instances to the clipboard as CSV.
Method exportInstances Callback to export the current resource's instances as CSV.
Method exportResource Callback to export the current resource.
Method on_checkbox_changed Callback when the checkbox to include child resources in the export is changed.
Method on_show Called when the view is shown.
Method updateResource Update the current resource for the services view.
Class Variable managementSupport Injected ManagementSupport instance.
Instance Variable exportIncludingChildResources Flag to indicate if child resources should be included in the export.
Instance Variable resource The current resource.
Property exportChildResourcesCheckbox Return the checkbox to include child resources in the export.
Property exportInstancesLoadingIndicator Return the loading indicator for the instances export.
Property exportInstancesResult Return the result view of the instances export.
Property exportInstancesView Return the export instances view.
Property exportResourceLoadingIndicator Return the loading indicator for the resource export.
Property exportResourceResult Return the result view of the resource export.
Instance Variable _app The application.
Instance Variable _servicesExportInstances The export instances view.
Instance Variable _servicesExportInstancesLoadingIndicator The loading indicator for the instances export.
Instance Variable _servicesExportInstancesResult The result view of the instances export.
Instance Variable _servicesExportResource The export resource view.
Instance Variable _servicesExportResourceCheckbox The checkbox to include child resources in the export.
Instance Variable _servicesExportResourceLoadingIndicator The loading indicator for the resource export.
Instance Variable _servicesExportResourceResult The result view of the resource export.
def __init__(self, id: str):

Initialize the view.

Parameters
id:strThe view ID.
def compose(self) -> ComposeResult:

Compose the view.

Returns
ComposeResultThe ComposeResult
@on(Button.Pressed, '#services-copy-instances-button')
def copyInstances(self):

Callback to copy the current resource's instances to the clipboard as CSV.

@on(Button.Pressed, '#services-export-instances-button')
def exportInstances(self):

Callback to export the current resource's instances as CSV.

@on(Button.Pressed, '#services-export-resource-button')
def exportResource(self):

Callback to export the current resource.

def on_checkbox_changed(self, event: Checkbox.Changed):

Callback when the checkbox to include child resources in the export is changed.

Parameters
event:Checkbox.ChangedThe Checkbox.Changed event.
def on_show(self):

Called when the view is shown.

def updateResource(self, resource: Resource):

Update the current resource for the services view.

Parameters
resource:ResourceThe resource to use for services.
managementSupport: ManagementSupport =

Injected ManagementSupport instance.

exportIncludingChildResources: bool =

Flag to indicate if child resources should be included in the export.

resource: Resource =

The current resource.

@property
exportChildResourcesCheckbox: Checkbox =

Return the checkbox to include child resources in the export.

Returns
The checkbox.
@property
exportInstancesLoadingIndicator: LoadingIndicator =

Return the loading indicator for the instances export.

Returns
The loading indicator view.
@property
exportInstancesResult: Static =

Return the result view of the instances export.

Returns
The result view.
@property
exportInstancesView: Vertical =

Return the export instances view.

Returns
The export instances view.
@property
exportResourceLoadingIndicator: LoadingIndicator =

Return the loading indicator for the resource export.

Returns
The loading indicator.
@property
exportResourceResult: Static =

Return the result view of the resource export.

Returns
The result view.
_app =

The application.

_servicesExportInstances =

The export instances view.

_servicesExportInstancesLoadingIndicator =

The loading indicator for the instances export.

_servicesExportInstancesResult =

The result view of the instances export.

_servicesExportResource =

The export resource view.

_servicesExportResourceCheckbox =

The checkbox to include child resources in the export.

_servicesExportResourceLoadingIndicator =

The loading indicator for the resource export.

_servicesExportResourceResult =

The result view of the resource export.