IW
TMS IntraWeb Component Pack Pro Script Edition
Over 70 components for building feature-rich VCL for the Web (IntraWeb) applications faster. Includes grid, rich editor, menus, navigational controls, responsive list, treeview
For web development, you might consider using:
Tips and Frequently Asked Questions
TTIWResponsiveList: How to add an item with an input field and a button that retrieves the value of the input field
You can use HTML tags to add form controls to an item. Assign the onclick handler of an HTML button to trigger the OnAsyncControlEvent. Use the OnAsyncControlEvent to execute the AsyncGetAttributes call. For a text field you can use the “value” attribute. The OnAsyncGetAttributes event then returns the requested attribute value(s).
Sample code:
procedure TformResponsiveList1.IWAppFormCreate(Sender: TObject); var li: TIWListItem; begin li := TIWResponsiveList1.Items.Add; li.Text.Add(''
<input type="text" id="textid" value="test">''); li.Text.Add(''
<input type="button" id="button" value="Button" onclick="'' + TIWResponsiveList1.HTMLName + ''ControlEventHandler(event, ''''ButtonClick'''')">''); end; procedure TformResponsiveList1.TIWResponsiveList1AsyncControlEvent( Sender: TObject; EventParams: TStringList; EventType, ControlID: string; ItemIndex: Integer); var id, att: TStringList; begin if EventType = ''ButtonClick'' then begin id := TStringList.Create; id.Add(''textid''); att := TStringList.Create; att.Add(''value''); TIWResponsiveList1.AsyncGetAttributes(ItemIndex, id, att); id.Free; att.Free; end; end; procedure TformResponsiveList1.TIWResponsiveList1AsyncGetAttributes( Sender: TObject; EventParams: TStringList; ItemIndex: Integer; ControlIDs, AttributeNames, AttributeValues: TStringList); begin WebApplication.ShowMessage(AttributeValues.Text); end;
IW
Buy now
TMS IntraWeb Component Pack Pro Script Edition
Compatibility
- 2010, Delphi 2009, XE, XE2, XE3, XE4, XE5, XE6, XE7, XE8, 10 Seattle, 10.1 Berlin, 10.2 Tokyo, 10.3 Rio, 10.4 Sydney, 11 Alexandria, C++Builder 2009, 2010, XE, XE2, XE3, XE4, XE5, XE6, XE7, XE8, 10 Seattle, 10.1 Berlin, 10.2 Tokyo, 10.3 Rio, 10.4 Sydney, 11 Alexandria (Professional/Enterprise/Architect)
Licensing
- Licensing FAQ
- License for commercial use: Single developer license, Site license
- Includes full source code
- Ask questions to our engineers related to purchased product via Support Center
- Free 1 year updates and new releases
- After 1 year, a discount renewal is offered for a 1 year extension. *
* offer valid for 30 days after end of license. Discount price is subject to change.