Uploaded image for project: 'ZK'
  1. ZK
  2. ZK-3532

HtmlBasedComponent supports addSclass() removeSclass()

    Details

    • Type: New Feature
    • Status: Closed
    • Priority: Normal
    • Resolution: Done
    • Affects Version/s: 8.0.3
    • Fix Version/s: 8.6.1
    • Component/s: None
    • Labels:
      None
    • gh.sprint.customfield.default.name:
      ZK 8.6.1 S1

      Description

      When users adding customized style, they usually toggle a displaying effect by adding or removing a CSS class on a component.
      Hence, API like addSclass() and removeSclass() are more convenient than setSclass and getSclass.

      Spec are:

      • public void addSclass(String cssCass)
        • append passed CSS class to a component's sclass property if the component doesn't have sclass.
        • If the component already has the CSS class sclass, do nothing.
      • public void removeSclass(String cssClass)
        • remove passed CSS class from a component's sclass property if the component has sclass.
        • If the component doesn't have the CSS class sclass, do nothing.

        Activity

        Hide
        Anonymous added a comment -

        Ready since 2018/11/15

        Show
        Anonymous added a comment - Ready since 2018/11/15

          People

          • Assignee:
            Leon03 Leon03
            Reporter:
            hawk hawk
          • Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Time Tracking

              Estimated:
              Original Estimate - 2 days
              2d
              Remaining:
              Remaining Estimate - 0 minutes
              0m
              Logged:
              Time Spent - 2 days
              2d

                Agile