withDisplayOrder

Method
📦 Aspire.Hosting v17.0.0
interface ContainerResource {
// ... omitted for brevity
withDisplayOrder(order: number): IResource;
}

Signature

methodwithDisplayOrderbuilder
Sets the default display order of the resource in lists of resources, such as the dashboard's. A saved ordering takes precedence. Repeated calls replace the order.
withDisplayOrder(order: number): IResource
ordernumberA relative sort key. Higher values appear first, consistent with `DisplayOrder`. Resources without a display order are treated as having an order of 0, so a negative value moves a resource after them.
IResource

Applies to

This method applies to the following types: