components

Component (similar to trackbar) to enter a range of values

非 Y 不嫁゛ 提交于 2019-12-12 07:06:46
问题 I need a component for entering ranges. I was thinking along the lines of a trackbar with two markers. Are there "native Delphi" components that are meant for this purpose or that can simulate it easily? 回答1: I got a few minutes over and wrote this: unit RangeSelector; interface uses SysUtils, Windows, Messages, Graphics, Classes, Controls, UxTheme, Dialogs; type TRangeSelectorState = (rssNormal, rssDisabled, rssThumb1Hover, rssThumb1Down, rssThumb2Hover, rssThumb2Down, rssBlockHover,

Angular 2: Is there a way to bind a hashtag to a div?

狂风中的少年 提交于 2019-12-12 06:28:40
问题 I am creating a component and injecting it. Is there instead of having a static reference to the #theBody to have it bind from an array or variable? import {ComponentRef, Injectable, Component, Injector, ViewContainerRef, ViewChild,ComponentResolver} from '@angular/core'; import { HeroListComponent } from './hero-list.component'; If I got like #theBody predefined than I able to created @Component({ selector: 'my-app', template: `<button (click)="addCmp()" >add</button> <hero-list></hero-list>

Form Component inheriting CommonDialog

别说谁变了你拦得住时间么 提交于 2019-12-12 06:24:23
问题 well, as the title says, I need to create a component inheriting from the commonDialog. I have a form already created and working, but I need to create it as a component (like OpenFileDialog) to use in later project (like a "pop-up"). Any ideas ? Thanks ! 回答1: CommonDialog is a very specific base class that was designed to act as a common base class for dialogs that are built into Windows. It is not an appropriate base class for your own component. Simply derive from Component instead. A

How do i send data from component A to component B Angular 2

我的未来我决定 提交于 2019-12-12 05:40:01
问题 I want to display the username on my NavbarComponent, the data coming from LoginComponent. login.component.ts import { Component, OnInit } from '@angular/core'; import { FormBuilder,FormGroup,Validators,FormControl } from '@angular/forms'; import { AuthService } from '../../services/auth.service'; import { Router } from '@angular/router'; import { FlashMessagesService } from 'angular2-flash-messages'; @Component({ selector: 'app-login', templateUrl: './login.component.html', styleUrls: ['.

Wicket Component hierarchy - getParent()

可紊 提交于 2019-12-12 05:26:58
问题 I did an experiment. First I want to state the html: <form wicket:id="form"> <table> <tr> <td> <table style="border: 1px solid;" cellspacing="0" cellpadding="0"> <tr wicket:id="row"> <td wicket:id="column" style="border: 1px solid #3A6395"> <div wicket:id="div"> <span wicket:id="panel"></span> <span wicket:id="tooltip"><span wicket:id="tooltipPanel"></span></span> </div> </td> </tr> </table> </td> <td>   </td> </tr> </table> </form> <wicket:fragment wicket:id="labelFragment"> <span wicket:id=

AIR: components in window-based mxml component are frozen

有些话、适合烂在心里 提交于 2019-12-12 05:15:09
问题 SUBJ: creating a window-based mxml component, but in design mode all components that I'm adding are not movable, why? If I create component based on group f.e., it's ok, but based on window - they are frozen. Using Flash Builder 4.6 回答1: I guess it's a bug that Adobe needs to look into. But in the meantime, you can use <mx:Window> and change them all to <s:Window> before you will finally build the release version of the project. 回答2: I am facing the same problem and it's very frustrating. I

java spring mvc @service method: nullpointerexception | newbie and translation

六月ゝ 毕业季﹏ 提交于 2019-12-12 04:55:50
问题 I am trying to set up a translation service which will use gnu gettext. The basic idea is from: https://thedarkgod.wordpress.com/2009/01/18/java-webapp-localization-through-gettext/ But I would like it to be implemented as a service. For some odd reasons, I would like to have this class: import webapp.service.TranslationService; import org.springframework.context.i18n.LocaleContextHolder; /** * AppStrings<p> * <p/> * DOC-TODO: */ @Service("applicationStrings") public class ApplicationStrings

Passing parameter from parent to child component when using hierarchical routes with Angular2

主宰稳场 提交于 2019-12-12 04:14:41
问题 I have a route config as following: export const ProjectRoutes: Route[] = [ { path: 'projects', component: ProjectComponent, canActivate: [ScrollTop, AuthGuard], data: { roles: [Role.USER] } }, { path: 'project/:id', component: ProjectDetailsComponent, children: [ { path: '', component: ProjectInfoComponent, canActivate: [ScrollTop, AuthGuard], data: { roles: [Role.USER] } }, { path: 'tools', component: ProjectToolsComponent, canActivate: [ScrollTop, AuthGuard], data: { roles: [Role.USER] } }

Angular 2, Updating a component when user clicks on another component

偶尔善良 提交于 2019-12-12 04:01:45
问题 heres what im trying to achieve. Im trying to update a value in a component whenever a user clicks on another component . take a look at my code here is my app.component.html file <div class="col-sm" *ngFor="let tabs of videoTabs"> <!-- this is where i want the user to click on --> <div class="tabs hvr-back-pulse"> <div class="row"> <div class="text-center col-sm-4"> <img src="{{ tabs.image }}" class="rounded-circle img-thumbnail"> </div> <div class="col-sm-8"> <small>{{ tabs.title }}</small>

Sharing content between Adobe CQ5 pages

天大地大妈咪最大 提交于 2019-12-12 03:53:16
问题 I'm currently creating a CMS for a site in Adobe CQ5. One of the components that has been asked for is to have a custom navigation component for menus. The user would be able to enter a series of links and urls specific to that page. The kicker is that they need to be able to share this menu with several other pages (but not all, generally this will be the other pages in the same folder). There will also be several different menus each shared between their own group of pages. So I guess the