mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-03-23 05:10:30 -04:00
Switch withProperties to be withProps (#16380)
* Transition to withProps in arc * Transition to withProps inputbox * Transition to withProps in checkbox * Transition to withProps text * Transition to withProps in declarative table * Transition to withProps hyperlink * Transition to withProps in button * Transition to withProps radiobutton * Transition to withProps in input * Transition to withProps button * Transition to withProps in text * Transition to withProps image * Transition to withProps declare table * Transition to withProps in table * Transition to withProps radio button * Transition to withProps in image * Transition to withProps radio button * Transition to withProps in commit * Transition to withProps div cont * Transition to withProps in comp * Transition to withProps radio card * Transition to withProps in comp icon * Transition to withProps card * Transition to withProps list
This commit is contained in:
@@ -45,12 +45,12 @@ export class SqlAssessmentHistoryTab extends SqlAssessmentTab {
|
||||
height: '100%'
|
||||
}).component();
|
||||
|
||||
const title = view.modelBuilder.text().withProperties<azdata.TextComponentProperties>({
|
||||
const title = view.modelBuilder.text().withProps({
|
||||
value: '',
|
||||
CSSStyles: { 'font-weight': 'bold', 'margin-block-start': '0px', 'margin-block-end': '0px', 'font-size': '20px', 'padding-left': '20px', 'padding-bottom': '20px' }
|
||||
}).component();
|
||||
|
||||
const backLink = view.modelBuilder.hyperlink().withProperties<azdata.HyperlinkComponentProperties>({
|
||||
const backLink = view.modelBuilder.hyperlink().withProps({
|
||||
label: localize('asmt.history.back', "<< Back"),
|
||||
url: '',
|
||||
CSSStyles: { 'text-decoration': 'none', 'width': '150px' }
|
||||
@@ -65,7 +65,7 @@ export class SqlAssessmentHistoryTab extends SqlAssessmentTab {
|
||||
const infoPanel = view.modelBuilder.flexContainer()
|
||||
.withLayout({
|
||||
flexFlow: 'row'
|
||||
}).withProperties<azdata.ComponentProperties>({
|
||||
}).withProps({
|
||||
CSSStyles: {
|
||||
'padding-left': '15px'
|
||||
}
|
||||
@@ -114,7 +114,7 @@ export class SqlAssessmentHistoryTab extends SqlAssessmentTab {
|
||||
private async createHistorySummaryTable(view: azdata.ModelView): Promise<azdata.TableComponent> {
|
||||
const cssHeader = 'no-borders align-with-header';
|
||||
return view.modelBuilder.table()
|
||||
.withProperties<azdata.TableComponentProperties>({
|
||||
.withProps({
|
||||
data: [],
|
||||
columns: [
|
||||
{ value: localize('asmt.history.summaryAsmtDate', "Assessment Date"), headerCssClass: cssHeader, width: 125 },
|
||||
|
||||
Reference in New Issue
Block a user