-1

Is there a way to reorder entries of the side bar of a w20-business-theme based web application having its master page generated automatically (other than using categories).

Thank you!

4

1 回答 1

1

要对侧边栏的条目进行排序,我们需要使用 sortKey 属性。

小例子:

    "routes": {
  "home": {
    "template": "<h1>Hello World!</h1>",
    "hidden": true
  },
  "components1": {
    "templateUrl": "{demo}/views/components.html",
    "sortKey": 10
  },
  "components2": {
    "templateUrl": "{demo}/views/components.html",
    "sortKey": 30
  },
  "components3": {
    "templateUrl": "{demo}/views/components.html",
    "sortKey": 20
  },
  "components4": {
    "templateUrl": "{demo}/views/components.html",
    "sortKey": 50
  }
}
于 2017-05-12T15:32:27.117 回答