custom-component

Custom component creation - how to add small icon representing component in Tool Palette?

蓝咒 提交于 2021-02-07 13:34:45
问题 Please bear in mind that I've read all the instructions I could find about adding component icon to my custom component. And I am able to do this when we talk about the icon size which is 24x24 pixels. I see the icon when a component is dropped on the form. However I can not see the small 16x16 icon which should be displayed when browsing Tool Palette. I've read that I should name my two other BMP files which are contained in DCR file like this: MyComponentName16 [for 16x16 BMP file]

Custom component creation - how to add small icon representing component in Tool Palette?

北城余情 提交于 2021-02-07 13:34:20
问题 Please bear in mind that I've read all the instructions I could find about adding component icon to my custom component. And I am able to do this when we talk about the icon size which is 24x24 pixels. I see the icon when a component is dropped on the form. However I can not see the small 16x16 icon which should be displayed when browsing Tool Palette. I've read that I should name my two other BMP files which are contained in DCR file like this: MyComponentName16 [for 16x16 BMP file]

Custom component creation - how to add small icon representing component in Tool Palette?

浪尽此生 提交于 2021-02-07 13:34:11
问题 Please bear in mind that I've read all the instructions I could find about adding component icon to my custom component. And I am able to do this when we talk about the icon size which is 24x24 pixels. I see the icon when a component is dropped on the form. However I can not see the small 16x16 icon which should be displayed when browsing Tool Palette. I've read that I should name my two other BMP files which are contained in DCR file like this: MyComponentName16 [for 16x16 BMP file]

How can I get component state change in another component with litElement?

*爱你&永不变心* 提交于 2021-01-28 08:50:37
问题 I started a project based on LitElement There are many components nested in each other, Let us say we have this structure: the root component is my-app import { LitElement, html, customElement, query } from 'lit-element'; import './my-form'; import './my-view'; import { MyView } from './my-view'; @customElement('my-app') export class MyApp extends LitElement { @query('my-view') private myView?: MyView; private handleCountChange(e: CustomEvent<{ count: number }>) { if (!this.myView) throw 'my

Change items of a dropdown property editor based on another property?

[亡魂溺海] 提交于 2021-01-27 22:10:15
问题 I am trying to implement a drop-down property in a custom component, and I used This SO Answer and this answer as a guide. So far I managed to get it working, with predefined items in the drop-down list. But I still need to figure out how to alter the items in the drop-down list ? This is the code I have so far (build from the link mentioned above) [TypeConverter(typeof(TableNameConverter))] public TableName gttTableName { get; set; } ... public class TableName { public string Name { get; set

How to pass submitted value of JSF custom component to managed bean?

♀尐吖头ヾ 提交于 2020-07-03 07:10:06
问题 I have created a custom component. I add a dynamic input text box to it (from the encode function). The component is correctly is rendered as HTML. But I want to bind the value of the text box to some property on the Managed Bean. So some other developer can use the component on his jsp with his managed bean. I want to know, what should I do, so that the value entered in the text box (which my component dynamically creates) is set to the some Managed bean property. 回答1: You need to ensure

How to pass submitted value of JSF custom component to managed bean?

依然范特西╮ 提交于 2020-07-03 07:08:57
问题 I have created a custom component. I add a dynamic input text box to it (from the encode function). The component is correctly is rendered as HTML. But I want to bind the value of the text box to some property on the Managed Bean. So some other developer can use the component on his jsp with his managed bean. I want to know, what should I do, so that the value entered in the text box (which my component dynamically creates) is set to the some Managed bean property. 回答1: You need to ensure

How to embed a UITableView in a custom view

左心房为你撑大大i 提交于 2020-06-26 07:19:18
问题 Goal I want to create a custom view that has a UITableView as a subview. The custom view creates the table view programmatically. To the outside world (i.e., the ViewController), though, the custom view itself would appear to be a table view. What I've tried import UIKit class CustomTableView: UIView { // Do I make outlets? //@IBOutlet var dataSource: UITableViewDataSource? //@IBOutlet var delegate: UITableViewDelegate? required init(coder aDecoder: NSCoder) { super.init(coder: aDecoder) }

Component communication in angular 1.5

泪湿孤枕 提交于 2020-02-28 04:47:05
问题 Angular 1.5 component communication suggestions usually have output bindings to invoke methods on root controllers. Let's say I have a root component, and two child components. <root> <child-1></child-1> <child-2></child-2> </root> It'd like to react to a button click on component one by reading a value on component two and then doing something in the root. For example, child-1 is a directive which wraps a drawing library that attaches a drawing to its DOM node and has a variable to control