Checking out Danny's cool new panelPopup component,
a few comments/questions/possible additions...

Question: what happens if the popup contains a required field?
I think you'd get validation firing, even though it's really
hidden.  I guess the proper way to handle this is to put
a subform in the content of the popup.

- The name:  do we want to call this panelPopup or perhaps just
 popup?  It seems a bit more than just a "panel", since it has
 some behavior to it, but it is a container that does extend UIXPanel,
 at least today.

Attributes:
- "alignment": We've used "align" in other components.  OTOH,
  this is different, so perhaps it should be "location" or "position"?
  Also,  instead of the value "none", I'd prefer "relative",
  more like the CSS "position" property.
- "icon": looks like the docs have some cut-and-paste from "text"
- "title": should probably clarify this only applies to modal="true"
  popups.

Some potential enhancements for the future:
- Support (and doc) how to use JS to launch this (so you could
 have no trigger facet at all, but launch it from another component
 altogether)
- Support a triggerType property that defaults to "click", but
 could be set to "hover", for instance, so that the popup
 would appear any time you hovered over the content,
 and disappeared when you left.

Cheers,
Adam

Reply via email to