本文整理汇总了TypeScript中@microsoft/sp-core-library.Log.verbose方法的典型用法代码示例。如果您正苦于以下问题:TypeScript Log.verbose方法的具体用法?TypeScript Log.verbose怎么用?TypeScript Log.verbose使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类@microsoft/sp-core-library.Log
的用法示例。
在下文中一共展示了Log.verbose方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的TypeScript代码示例。
示例1: onInit
@override
public onInit(): Promise<void> {
Log._initialize(new LogHandler((window as any).LOG_LEVEL || LogLevel.Error));
Log.verbose(LOG_SOURCE, 'Activated ConditionalFormattingFieldCustomizer with properties:');
Log.verbose(LOG_SOURCE, JSON.stringify(this.properties, undefined, 2));
return Promise.resolve<void>();
}
示例2: lookupOptionReducer
function lookupOptionReducer(state = INITIAL_STATE, action: any = { type: "" }) {
switch (action.type) {
case GET_LOOKUPOPTIONS:
Log.verbose("getLookupOptions", "In getLookupOptions GET_LOOKUPOPTIONS listItemReducer ActionType is " + action.type);
return getLookupOptions(state, action);
case GET_LOOKUPOPTIONS_SUCCESS:
Log.verbose("getLookupOptions", "In getLookupOptions GET_LOOKUPOPTIONS_SUCCESSof listItemReducer ActionType is " + action.type);
return updateLookupOption(state, action);
case GET_LOOKUPOPTIONS_ERROR:
/** The ActionCreator has set the state to error , so i just update the item */
Log.verbose("getLookupOptions", "In getLookupOptions GET_LOOKUPOPTIONS_ERRORof listItemReducer ActionType is " + action.type);
return updateLookupOption(state, action);
default:
return state;
}
}
示例3: siteUsersReducer
function siteUsersReducer (state = INITIAL_STATE, action: any = { type: "" }) {
switch (action.type) {
case GET_SITE_USERS:
Log.verbose("getLookupOptions", "In getLookupOptions GET_SITE_USERS listItemReducer ActionType is " + action.type);
return getSiteUsers(state, action);
case GET_SITE_USERS_SUCCESS:
Log.verbose("getLookupOptions", "In getLookupOptions GET_SITE_USERS_SUCCESS listItemReducer ActionType is " + action.type);
return updateSiteUser(state, action);
case GET_SITE_USERS_ERROR:
/** The ActionCreator has set the state to error , so i just update the item */
Log.verbose("getLookupOptions", "In getLookupOptions GET_SITE_USERS_ERROR listItemReducer ActionType is " + action.type);
return updateSiteUser(state, action);
default:
return state;
}
}
示例4: onRenderCell
@override
public onRenderCell(event: IFieldCustomizerCellEventParameters): void {
event.cellDiv.parentElement.classList.add(styles.ConditionalFormatting);
event.cellDiv.innerText = CellFormatter.renderAsText(this.context.column, event.cellValue);
let midStart: number = this.properties.midStart;
let midEnd: number = this.properties.midEnd;
if (!midStart && !midEnd) {
Log.error(LOG_SOURCE, new Error('Field customizer configuration missing. midStart or midEnd parameter must be specified'));
return;
}
else {
if (midStart && !midEnd) {
Log.verbose(LOG_SOURCE, `midEnd not specified. Setting to midStart:${midStart}`);
midEnd = midStart;
}
else if (!midStart && midEnd) {
Log.verbose(LOG_SOURCE, `midStart not specified. Setting to midEnd:${midEnd}`);
midStart = midEnd;
}
}
let value: number = parseInt(event.cellValue);
if (isNaN(value)) {
Log.info(LOG_SOURCE, `'${event.cellValue}' is not a number. Aborting conditional formatting`);
return;
}
if (value < midStart) {
event.cellDiv.parentElement.classList.add(styles.min);
}
else if (value >= midStart && value <= midEnd) {
event.cellDiv.parentElement.classList.add(styles.mid);
}
else if (value > midEnd) {
event.cellDiv.parentElement.classList.add(styles.max);
}
}