iOS:add ListItem actions api

This commit is contained in:
pengfei.zhou
2021-04-23 19:05:33 +08:00
committed by osborn
parent cc7df5d2ca
commit e18b7e781e
18 changed files with 167 additions and 36 deletions

View File

@@ -18,7 +18,7 @@ import { View, Property, Superview, NativeViewModel } from "../ui/view";
import { Stack } from "./layouts";
import { layoutConfig } from "../util/layoutconfig";
import { BridgeContext } from "../runtime/global";
import { Color } from "../util/color";
export class ListItem extends Stack {
/**
@@ -26,6 +26,13 @@ export class ListItem extends Stack {
*/
@Property
identifier?: string
@Property
actions?: {
title: string,
backgroundColor?: Color,
callback: () => void,
}[]
}
export class List extends Superview {