mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-01-30 17:23:29 -05:00
withProperties -> withProps (#15876)
* withProperties -> withProps * Fix errors * remove , * fixes * Update azdata-test * Fix dacpac tests * Add required and remove added layout
This commit is contained in:
5
src/sql/azdata.proposed.d.ts
vendored
5
src/sql/azdata.proposed.d.ts
vendored
@@ -834,6 +834,11 @@ declare module 'azdata' {
|
||||
* Specifies whether this is a secondary button. Default value is false.
|
||||
*/
|
||||
secondary?: boolean;
|
||||
|
||||
/**
|
||||
* The file type filter used for the file input dialog box - only used when the button type is File
|
||||
*/
|
||||
fileType?: string
|
||||
}
|
||||
|
||||
export enum ButtonType {
|
||||
|
||||
@@ -1717,6 +1717,13 @@ class ButtonWrapper extends ComponentWithIconWrapper implements azdata.ButtonCom
|
||||
this.setProperty('label', v);
|
||||
}
|
||||
|
||||
public get fileType(): string {
|
||||
return this.properties['fileType'];
|
||||
}
|
||||
public set fileType(v: string) {
|
||||
this.setProperty('fileType', v);
|
||||
}
|
||||
|
||||
public get onDidClick(): vscode.Event<any> {
|
||||
let emitter = this._emitterMap.get(ComponentEventType.onDidClick);
|
||||
return emitter && emitter.event;
|
||||
|
||||
@@ -451,7 +451,7 @@ suite('ExtHostModelView Validation Tests', () => {
|
||||
*/
|
||||
function createDeclarativeTable(modelView: azdata.ModelView, dataType: DeclarativeDataType, data?: any[]): azdata.DeclarativeTableComponent {
|
||||
return modelView.modelBuilder.declarativeTable()
|
||||
.withProperties(
|
||||
.withProps(
|
||||
{
|
||||
columns: [
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user