PopupSizeProviderDirective class

Directive to provide maximum and minimum sizes to a popup from html.

Example usage (somefile.html):

If a maximum or minimum size is not specified, it delegates to parent popup size provider.

Implemented types
Annotations
  • @Directive(selector: '[popupMinHeight],[popupMinWidth],[popupMaxHeight],[popupMaxWidth]', providers: [ClassProvider(PopupSizeProvider, useClass: PopupSizeProviderDirective)])

Constructors

PopupSizeProviderDirective(@Attribute('popupMinHeight') String? minHeight, @Attribute('popupMinWidth') String? minWidth, @Attribute('popupMaxHeight') String? maxHeight, @Attribute('popupMaxWidth') String? maxWidth, @Optional() @SkipSelf() PopupSizeProvider? _parentPopupSizeProvider)

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

getMaxHeight(num positionY, num viewportHeight) num?
The max height.
override
getMaxWidth(num positionX, num viewportWidth) num?
The max width.
override
getMinHeight(num positionY, num viewportHeight) num?
The min height.
override
getMinWidth(num positionX, num viewportWidth) num?
The min width.
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited