Skip to main content

ClientPolicy

Field metadata for client property updates and event dispatch.

Inherits: enum.Enum

Properties

  • CLOSE_ONLY - Accept only False from the client for this bool field, such as open of a control a user can close but not open.
  • EDITABLE_ONLY - Accept client input for this field or handler only while the control's read_only is not True.
  • ENABLED_ONLY - Accept client input for this field or handler only while the control and its ancestors are enabled.
  • SERVER_ONLY_EVENT - Reserve this on_* handler for events dispatched by Python.
  • WRITABLE - Accept values reported by the Dart widget for this field.

Properties​

CLOSE_ONLYclass-attributeinstance-attribute​

Accept only False from the client for this bool field, such as open of a control a user can close but not open. It narrows WRITABLE, which the field still needs to receive client values.

EDITABLE_ONLYclass-attributeinstance-attribute​

Accept client input for this field or handler only while the control's read_only is not True. The control must have a read_only field.

ENABLED_ONLYclass-attributeinstance-attribute​

Accept client input for this field or handler only while the control and its ancestors are enabled.

SERVER_ONLY_EVENTclass-attributeinstance-attribute​

Reserve this on_* handler for events dispatched by Python.

WRITABLEclass-attributeinstance-attribute​

Accept values reported by the Dart widget for this field.