This is a migrated thread and some comments may be shown as answers.

[Solved] Get mvc control init options

0 Answers 15 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Grzegorz Żydek
Top achievements
Rank 1
Grzegorz Żydek asked on 08 Sep 2011, 06:31 PM
Hi,

Maybe in the future release, you could add new functionality like getting initial options from control.

for example:

If I create TextBox

var $input = $("<input type="text" />);
var options = { val: 0, step: 1, minValue: 0 };
$input.tTextBox(options);

it will be great if I could somehow get options that I passed to control

var $input2 = $input.clone(false);
$input2.tTextBox($input.getInitOptions());

It will simplify doing dynamic form, cloning etc.


Cheers. Grzesiek
Tags
General Discussions
Asked by
Grzegorz Żydek
Top achievements
Rank 1
Share this question
or