Resource.WithDisplayOrder
Method
func (Resource) WithDisplayOrder(order float64) ResourceSignature
method
WithDisplayOrder builderSets 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 float64) ResourceParameters
orderfloat64A 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.Returns
ResourceThe resource builder.
Returns a handle; failures surface later via Err().
Defined on
A marker interface declares no methods of its own in Go. Its functions are declared on the concrete types they apply to.
Applies to
This function applies to the following types: