Skip to content

Instantly share code, notes, and snippets.

@jinnyMcKindy
Last active February 7, 2022 08:29
Show Gist options
  • Save jinnyMcKindy/7548fbddb3e8f59f6b6490f3dd1b97e4 to your computer and use it in GitHub Desktop.
Save jinnyMcKindy/7548fbddb3e8f59f6b6490f3dd1b97e4 to your computer and use it in GitHub Desktop.
Пример компонента для таблиц
@Prop() type!
switch type {
case "users":
api.call("users")
break;
case "events":
api.call("events")
break;
}
Users
headers: [{specialty: "Специальность", {city: "Город"}}]
items: [{specialyu: "Доктор", city: "Москва"}]
Events
headers: [{dateTo: "Дата проведения", {city: "Город"}}]
items: [{dateTo: "12.03.2021", city: "Москва"}]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment