mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-11-05 13:26:48 +08:00
chore: cleanup
This commit is contained in:
@@ -1,8 +1,11 @@
|
||||
import { Placeholder as PlaceholderDefinition, CreateViewEventData } from ".";
|
||||
import { View, EventData, CSSType } from "../core/view";
|
||||
import { CreateViewEventData } from "./placeholder-common";
|
||||
import { View, CSSType } from "../core/view";
|
||||
import { EventData } from "../../data/observable";
|
||||
|
||||
export * from './placeholder-common';
|
||||
|
||||
@CSSType("Placeholder")
|
||||
export class Placeholder extends View implements PlaceholderDefinition {
|
||||
export class Placeholder extends View {
|
||||
public static creatingViewEvent = "creatingView";
|
||||
|
||||
public createNativeView() {
|
||||
@@ -1,9 +1,7 @@
|
||||
/**
|
||||
* Contains the Placeholder class, which is used to add a native view to the visual tree.
|
||||
* @module "ui/placeholder"
|
||||
*/ /** */
|
||||
import { View } from "../core/view";
|
||||
import { EventData } from "../../data/observable";
|
||||
|
||||
import { View, EventData } from "../core/view";
|
||||
export * from './placeholder-common';
|
||||
|
||||
/**
|
||||
* Represents a Placeholder, which is used to add a native view to the visual tree.
|
||||
@@ -1,7 +1,10 @@
|
||||
import { Placeholder as PlaceholderDefinition, CreateViewEventData } from ".";
|
||||
import { View, EventData } from "../core/view";
|
||||
import { View } from "../core/view";
|
||||
import { CreateViewEventData } from "./placeholder-common";
|
||||
import { EventData } from "../../data/observable";
|
||||
|
||||
export class Placeholder extends View implements PlaceholderDefinition {
|
||||
export * from './placeholder-common';
|
||||
|
||||
export class Placeholder extends View {
|
||||
public static creatingViewEvent = "creatingView";
|
||||
|
||||
public createNativeView() {
|
||||
@@ -1,5 +0,0 @@
|
||||
{
|
||||
"name": "placeholder",
|
||||
"main": "placeholder",
|
||||
"types": "placeholder.d.ts"
|
||||
}
|
||||
13
nativescript-core/ui/placeholder/placeholder-common.ts
Normal file
13
nativescript-core/ui/placeholder/placeholder-common.ts
Normal file
@@ -0,0 +1,13 @@
|
||||
import { EventData } from "../../data/observable";
|
||||
|
||||
export interface CreateViewEventData extends EventData {
|
||||
/**
|
||||
* The native view that should be added to the visual tree.
|
||||
*/
|
||||
view: any;
|
||||
|
||||
/**
|
||||
* An optional context for creating the view.
|
||||
*/
|
||||
context?: any;
|
||||
}
|
||||
Reference in New Issue
Block a user