Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Component options for dropdowntree #2803

Closed
3 tasks done
joneff opened this issue Sep 16, 2021 · 1 comment
Closed
3 tasks done

Component options for dropdowntree #2803

joneff opened this issue Sep 16, 2021 · 1 comment
Assignees
Labels
Breaking Change Item which is introducing a breaking change. C:DropdownTree Enhancement New feature of an existing functionality or an improvement of an existing functionality.
Milestone

Comments

@joneff
Copy link
Contributor

joneff commented Sep 16, 2021

Dependencies

Component options

enum DropdownTreeSize { small, medium, large };
enum DropdownTreeRounded { small, medium, large, pill };
enum DropdownTreeFillMode { solid, flat, outline };

class DropdownTree {
   size: (null | DropdownTreeSize) = DropdownTreeSize.medium;
   rounded: (null | DropdownTreeRounded) = DropdownTreeRounded.medium;
   fillMode: (null | DropdownTreeFillMode) = DropdownTreeFillMode.solid;
}

Rendering

  • Rendering input part
<!-- default rendering -->
<span class="k-dropdowntree k-picker k-picker-md k-rounded-md k-picker-solid">
    <span class="k-input-inner"><span class="k-input-value-text"><span></span>
    <button type="button" class="k-input-button k-button k-icon-button k-button-md k-button-solid k-button-solid-base">
        <span class="k-button-icon k-icon k-i-arrow-s"></span>
    </button>
</span>

<!-- canonical rendering -->
<span class="
    k-dropdowntree
    k-picker
    k-picker-{size}
    k-rounded-{rounded}
    k-picker-{fillMode}

    {valid && 'k-valid'}
    {invalid && 'k-invalid'}
    {loading && 'k-loading'}
    {required && 'k-required'}
    {disabled && 'k-disabled'}
">
    {showInputIcon && inputIconName !== '' && <span class="k-input-icon k-icon k-i-{inputIconName}"></span>}
    {inputPrefix && <span class="k-input-prefix">...</span>}
    <span class="k-input-inner">
        <span class="k-input-value-icon k-icon k-i-{valueIcon}"><span>
        <span class="k-input-value-text">{valueText === '&#8203;' ? ' : valueText}<span>
    </span>
    {inputPrefix && <span class="k-input-suffix">...</span>}
    {showValidationIcon && valid && <span class="k-input-validation-icon k-icon k-i-check"></span>}
    {showValidationIcon && invalid && <span class="k-input-validation-icon k-icon k-i-warning"></span>}
    {showLoadingIcon && loading && <span class="k-input-loading-icon k-icon k-i-loading"></span>}
    {showClearValue && text !== '' && <span class="k-clear-value"><span class="k-icon k-i-x"></span></span>}
    <button type="button" class="k-input-button k-button k-icon-button k-button-{size} k-button-{fillMode} k-button-{fillMode}-base">
        <span class="k-button-icon k-icon k-i-arrow-s"></span>
    </button>
</span>
  • Rendering popup part
  • Expanded / Collapsed Icons
<kendo-treeview class="k-treeview k-treeview-md">
  <ul class="k-treeview-lines k-treeview-group">
    <li class="k-treeview-item">
      <div class="k-treeview-top">
        <span class="k-treeview-toggle">
          <span class="k-icon k-i-expand"></span>
        </span>
        <span class="k-treeview-leaf">
          <span class="k-treeview-leaf-text"> ... </span>
        </span>  
      </div>
    </li>
    <li class="k-treeview-item">
      <div class="k-treeview-mid">
        <span class="k-treeview-toggle">
          <span class="k-icon k-i-expand"></span>
        </span>
        <span class="k-treeview-leaf">
          <span class="k-treeview-leaf-text"> ... </span>
        </span>  
      </div>
    </li>
    <li class="k-treeview-item">
      <div class="k-treeview-bot">
        <span class="k-treeview-toggle">
          <span class="k-icon k-i-collapse"></span>
        </span>
        <span class="k-treeview-leaf">
          <span class="k-treeview-leaf-text"> ... </span>
        </span>  
      </div>
    </li>
  </ul>
</kendo-treeview>
  • Custom Icons
<kendo-treeview class="k-treeview k-treeview-md">
  <ul class="k-treeview-lines k-treeview-group">
    <li class="k-treeview-item">
      <div class="k-treeview-top">
        <span class="k-treeview-leaf">
          <span class="k-icon k-i-file"></span>
          <span class="k-treeview-leaf-text">...</span>
        </span>
      </div>
    </li>
    <li class="k-treeview-item">
      <div class="k-treeview-mid">
        <span class="k-treeview-leaf">
          <span class="k-icon k-i-file"></span>
          <span class="k-treeview-leaf-text">...</span>
        </span>
      </div>
    </li>
    <li class="k-treeview-item">
      <div class="k-treeview-bot">
        <span class="k-treeview-leaf">
          <span class="k-icon k-i-file"></span>
          <span class="k-treeview-leaf-text">...</span>
        </span>
      </div>
    </li>
  </ul>
</kendo-treeview>
  • Checkboxes
<kendo-treeview class="k-treeview k-treeview-md">
  <ul class="k-treeview-lines k-treeview-group">
    <li class="k-treeview-item">
      <div class="k-treeview-top">
        <kendo-checkbox class="k-checkbox-wrapper">
          <input type="checkbox" class="k-checkbox k-checkbox-md k-rounded-md" />
          <label class="k-checkbox-label" ></label>
        </kendo-checkbox>
        <span class="k-treeview-leaf">
          <span class="k-treeview-leaf-text"> ... </span>
        </span>  
      </div>
    </li>
  </ul>
</kendo-treeview>

Documentation

  • Variables
@joneff joneff added Enhancement New feature of an existing functionality or an improvement of an existing functionality. C:DropdownTree labels Sep 16, 2021
@joneff joneff added this to the 2022.1 milestone Sep 16, 2021
@joneff joneff added the Breaking Change Item which is introducing a breaking change. label Sep 16, 2021
@PaskalevStoyan PaskalevStoyan mentioned this issue Dec 13, 2021
8 tasks
@joneff
Copy link
Contributor Author

joneff commented Jan 19, 2022

shipped

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Breaking Change Item which is introducing a breaking change. C:DropdownTree Enhancement New feature of an existing functionality or an improvement of an existing functionality.
Projects
None yet
Development

No branches or pull requests

2 participants