Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

[new] Add support for tabIndex to WFWidget. Add to WFCheckbox, WFText…

…Field, WFSelect.
  • Loading branch information...
commit d3f783e8880c47cea14a95e67aab6bfa454d0e32 1 parent c2e3c1e
@apinstein authored
View
1  phocoa/RELEASE_NOTES
@@ -31,6 +31,7 @@ Version 0.4.0 - ??
- [new] Add this() function to WFObject to make it easier to use KVC magic on "current" object.
- [new] Add a smarty modifier plugin to json encode data.
- [new] Add nullPlaceholder support to WFYAHOO_widget_AutoComplete.
+- [new] Add support for tabIndex to WFWidget. Add to WFCheckbox, WFTextField, WFSelect.
Version 0.3.9 - 10/21/2010
- [new] Add WFRequestController->isMobileBrowser()
View
1  phocoa/framework/widgets/WFCheckbox.php
@@ -233,6 +233,7 @@ function render($blockContent = NULL)
'value="' . $this->checkedValue() . '" ' .
($this->checked() ? ' checked="checked" ' : '') .
($this->enabled() ? '' : ' disabled readonly ') .
+ ($this->tabIndex ? ' tabIndex="' . $this->tabIndex . '" ' : NULL) .
' />' .
$labelRight .
$this->getListenerJSInScriptTag();
View
1  phocoa/framework/widgets/WFSelect.php
@@ -399,6 +399,7 @@ function render($blockContent = NULL)
($this->enabled() ? '' : ' disabled readonly ') .
($this->class ? ' class="' . $this->class . '"' : '') .
($this->width ? ' style="width: ' . $this->width . ';" ' : '') .
+ ($this->tabIndex ? ' tabIndex="' . $this->tabIndex . '" ' : NULL) .
$this->getJSActions() .
'>';
View
7 phocoa/framework/widgets/WFWidget.php
@@ -88,6 +88,10 @@
* @see WFWidgets::setWidgetLabel()
*/
protected $widgetLabel;
+ /**
+ * @var integer The tabindex of the control (defaults to NULL)
+ */
+ protected $tabIndex;
/**
* Constructor.
@@ -107,6 +111,7 @@ function __construct($id, $page)
$this->hidden = false;
$this->class = NULL;
$this->widgetLabel = NULL;
+ $this->tabIndex = NULL;
}
public static function exposedProperties()
@@ -283,6 +288,8 @@ function setupExposedBindings()
$enSetup->setBindingType(WFBindingSetup::WFBINDINGTYPE_MULTIPLE_BOOLEAN);
$enSetup->setBooleanMode(WFBindingSetup::WFBINDINGTYPE_MULTIPLE_BOOLEAN_AND);
$myBindings[] = $enSetup;
+ $tabIndexSetup = new WFBindingSetup('tabIndex', 'The current tabIndex.');
+ $myBindings[] = $tabIndexSetup;
return $myBindings;
}
View
1  phocoa/framework/widgets/yahoo/WFYAHOO_widget_AutoComplete.php
@@ -367,6 +367,7 @@ function render($blockContent = NULL)
{
$html .= "<input id=\"{$this->id}\" name=\"{$this->id}\" type=\"text\" value=\"" . htmlspecialchars($this->value) ."\" " .
($this->nullPlaceholder ? ' placeholder="' . htmlspecialchars($this->nullPlaceholder) . '" ' : NULL) .
+ ($this->tabIndex ? ' tabIndex="' . $this->tabIndex . '" ' : NULL) .
$this->classHTML() . " />";
}
else if ($this->inputType == self::INPUT_TYPE_TEXTAREA)
Please sign in to comment.
Something went wrong with that request. Please try again.