Results 1 to 4 of 4

Thread: How do I create a theme mixins for a Grid?

  1. #1
    Sencha Premium User SebTardif's Avatar
    Join Date
    Feb 2011
    Location
    Cambridge, MA
    Posts
    1,294
    Answers
    16

    Default How do I create a theme mixins for a Grid?

    grid no theme mixins.jpg

    At the end of the day, want a new 'UI' for some of my grid, where the variable $grid-row-cell-line-height will have a different value.

  2. #2
    Sencha User
    Join Date
    Jun 2017
    Posts
    1

    Default

    Does anybody know the answer?

    Christian

  3. #3
    Sencha User
    Join Date
    Oct 2016
    Location
    Pune, India
    Posts
    3

    Default

    Here is how you can write your own mixins.

    @include extjs-panel-ui(
    $ui: 'your-panel-name',
    $ui-border-color: silver,
    $ui-header-color: #505050
    );

    You need to write this into .scss files. like \sass\src\view\yourViewName\yourViewName.scss

    Please follow the doc to get all the properties you want. http://docs.sencha.com/extjs/6.2.1/c...extjs-panel-ui

    And for using this into your code. You just need to set the ui property of your grid. e.g. ui: 'your-mixin-name'

  4. #4
    Sencha Premium Member
    Join Date
    Sep 2014
    Location
    New Jersey
    Posts
    168
    Answers
    11

    Default

    Bumping this because I'm also wondering the same. I'd like to have a custom component ui for some grids. Does anyone know how to do this?

Similar Threads

  1. [FIXED] THEME CSS Mixins: google-webfont & https problem
    By AvastHudec in forum Ext JS 6.x Bugs
    Replies: 1
    Last Post: 5 Jun 2015, 2:17 AM
  2. Combining Theme Mixins for 1 UI?
    By jeffbattershall in forum Ext: Q&A
    Replies: 2
    Last Post: 6 Feb 2014, 1:16 PM
  3. link to Sencha Touch theme mixins and variables is broken
    By 29er in forum Sencha Touch 2.x: Q&A
    Replies: 3
    Last Post: 28 Oct 2012, 9:37 AM
  4. Mixins theme
    By zlog in forum Ext: Discussion
    Replies: 1
    Last Post: 9 Jun 2011, 12:44 PM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •