jQWidgets Forums

jQuery UI Widgets Forums Lists ListBox Background Color or Font Color in Group

This topic contains 1 reply, has 2 voices, and was last updated by  Peter Stoev 13 years, 6 months ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
  • Background Color or Font Color in Group #1031

    gstockr
    Blocked

    Peter:

    I want to display nice background color or font color in group line:

    I have tried the following in “var source” (I copied your demo code). Please notice I modified a little bit in parameter of ‘group’. It does show highlight but not full in the whole column. Just only over the words.

    { html: "<div style='padding: 1px'><div>World Sam Pizza</div><div>Page: 1</div></div>", title: "Do the Work", group: "<div style='background:blue'>Test 1</div>" },

    What is the method that I can use to establish the color in group lines?

    Patrick

    Background Color or Font Color in Group #1032

    Peter Stoev
    Keymaster

    Hi Patrick,

    The Group’s header’s size is set to ‘auto’ in the current version. We will add an option to jqxListBox, for the next version. At present, you can manually set the Group’s header size by using a code like this:

    var source = [
    {html: "<div tabIndex=0 style='padding: 1px;'><div>Title: Do the Work</div><div>Author: Steven Pressfield</div></div>", title: "Do the Work", group: "Business", groupHtml: "<div style='padding-top: 10px; padding-bottom: 10px; width: 270px; background: Red; color: Blue;'>Business</div>" },
    ];

    Best Regards,
    Peter Stoev

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.