components

Angular Access inner component of ng-template

不羁的心 提交于 2019-12-30 18:50:43
问题 Let's say we have a component called TopComponent with a template like this: <ng-template #top> <inner-selector #inner></inner-selector> </ng-template> It's code is simple: //... imports ... @Component({ // selector, styles etc }) export class TopComponent implements AfterViewInit { @ViewChild('top') topComp : NgbModal; // NgbModal is a type provided by some 3rd-party library // I can't modify it ngAfterViewInit() { // let's access the #inner component from here } } I can access the #top

Creating a new component by combining two controls (TEdit and TTrackBar) in Delphi VCL

假如想象 提交于 2019-12-30 18:24:08
问题 I am developing a Delphi 10.1 VCL application for Windows. For integer or float input I need a number input field which is connected with a slider. When the user changes the number in the input field the slider position changes accordingly. When the user changes the slider position the number in the number field is updated. I can solve this by using a TEdit and a TTrackBar and add the necessary update functionality in their OnChange event handlers. The problem is that I need many of such

Angular ngx-mat-select-search Custom Component

拈花ヽ惹草 提交于 2019-12-30 10:46:09
问题 I am trying to use the ngx-mat-select-search component to put a mat-select style dropdown menu with a search bar in my application. https://www.npmjs.com/package/ngx-mat-select-search I have the dropdown working fine, but I am trying to turn it into a custom directive that I can then call and reuse on multiple pages through out the app. So far I have this: site-dropdown-component.ts import {AfterViewInit, Component, OnDestroy, OnInit, ViewChild} from '@angular/core'; import {FormControl} from

How to use flex-layout in nested components in angular 5?

不想你离开。 提交于 2019-12-30 09:33:34
问题 I am creating one application which has multiple components using parent child relationship in angular 5. Inside my main app.component.html I have this structure. <app-layout-header></app-layout-header> <app-layout-view></app-layout-view> <app-layout-add></app-layout-add> <router-outlet></router-outlet> <app-layout-footer></app-layout-footer> where this directive "app-layout-header" is responsible for loading side-navigation and top-navigation like this. Now this directive "app-layout-view"

Can someone recommend a colour picker component for Delphi?

折月煮酒 提交于 2019-12-30 09:32:51
问题 I'm looking for a (preferably free) component for Delphi for users to easily select about 100 different colours. I've currently got one as part of DevExpress's editors, but it only has about 20 proper colours to choose, with a bunch of other 'Windows' colours like clHighlight, clBtnFace, etc. It's for regular users, so would like to avoid requiring them to manually select RGB values. Something similar to the colour picker in MS Paint might work, or something that lists X11/web colours: http:/

Can someone recommend a colour picker component for Delphi?

萝らか妹 提交于 2019-12-30 09:32:05
问题 I'm looking for a (preferably free) component for Delphi for users to easily select about 100 different colours. I've currently got one as part of DevExpress's editors, but it only has about 20 proper colours to choose, with a bunch of other 'Windows' colours like clHighlight, clBtnFace, etc. It's for regular users, so would like to avoid requiring them to manually select RGB values. Something similar to the colour picker in MS Paint might work, or something that lists X11/web colours: http:/

Can someone recommend a colour picker component for Delphi?

ぃ、小莉子 提交于 2019-12-30 09:31:05
问题 I'm looking for a (preferably free) component for Delphi for users to easily select about 100 different colours. I've currently got one as part of DevExpress's editors, but it only has about 20 proper colours to choose, with a bunch of other 'Windows' colours like clHighlight, clBtnFace, etc. It's for regular users, so would like to avoid requiring them to manually select RGB values. Something similar to the colour picker in MS Paint might work, or something that lists X11/web colours: http:/

angular2 - Pass value from parent route to child route

一个人想着一个人 提交于 2019-12-30 09:08:23
问题 I have a route called home and it has three child routes, documents, mail and trash. In the home route component it has a variable called 'user'. I know there are a few ways of passing info between parent and child components highlighted here, but how am I suppose to pass info between parent/child routes. { path: 'home', component: HomeComponent, children: [ { path: 'documents', component: DocumentsComponent }, { path: 'mail', component: MailComponent }, { path: 'trash', component:

angular2 - Pass value from parent route to child route

廉价感情. 提交于 2019-12-30 09:08:05
问题 I have a route called home and it has three child routes, documents, mail and trash. In the home route component it has a variable called 'user'. I know there are a few ways of passing info between parent and child components highlighted here, but how am I suppose to pass info between parent/child routes. { path: 'home', component: HomeComponent, children: [ { path: 'documents', component: DocumentsComponent }, { path: 'mail', component: MailComponent }, { path: 'trash', component:

Best Shareware lock for Delphi Win32 [closed]

ぐ巨炮叔叔 提交于 2019-12-30 02:23:05
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 4 years ago . Same intro as my last question: I am re-writing and/or consolidating a bunch of my "app framework" classes (basic mainform, about box, locking routines & purchase linking, auto-update, datamodule initializer, etc) -- Basically, I have a number of small potential shareware apps that I'm wanting to get out the