Jump to content

Rating widget column


Sherzod

Recommended Posts

procedure TMainForm.UniFormCreate(Sender: TObject);
begin
  //for example
  with UniDBGrid1, UniDBGrid1.Columns[4].WidgetColumn do
  begin
    Enabled := True;
    AutoPost := True;
    Widget := UniSliderWidget1; //At the moment, we need to use an already existing widget (more precisely, UniSliderWidget), and change its type to another...
    JSInterface.JSConfig('xtype', ['rating'], Widget.JSControl);
    JSInterface.JSConfig('overStyle', ['color: orange;'], Widget.JSControl);
    JSInterface.JSConfig('scale', ['150%'], Widget.JSControl);
  end;

end;

 

  • Thanks 1
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...