QuickCreate class
Power BI 빠른 만들기 구성 요소
- Extends
-
Embed
생성자
Quick |
메서드
get |
getId 추상 함수 빠른 만들기를 재정의할 때 ID가 필요하지 않습니다. |
validate(IEmbed |
보고서 구성 만들기의 유효성을 검사합니다. |
상속된 메서드
exit |
브라우저에 전체 화면 모드를 종료하도록 요청합니다. |
fullscreen() | 전체 화면 모드에서 구성 요소의 iframe을 렌더링하도록 브라우저에 요청합니다. |
get |
현재 포함 세션의 correlationId를 가져옵니다.
|
off<T>(string, IEvent |
처리기 목록에서 하나 이상의 이벤트 처리기를 제거합니다. 기존 핸들 함수에 대한 참조를 지정한 경우 특정 처리기를 제거합니다. 처리기를 지정하지 않으면 지정된 이벤트 이름에 대한 모든 처리기를 제거합니다.
|
on<T>(string, IEvent |
특정 이벤트에 대한 이벤트 처리기를 추가합니다.
|
reload() | 기존 구성을 사용하여 포함을 다시 로드합니다. 예를 들어 보고서의 경우 모든 필터를 효과적으로 지우고 첫 번째 페이지를 활성화하여 보고서를 로드된 상태로 다시 설정하는 시뮬레이션을 수행합니다.
|
remove |
요소의 tabindex 특성을 제거합니다. |
save() | 보고서를 저장합니다. |
save |
SaveAs 보고서. |
set |
accessToken을 설정합니다. |
set |
요소의 tabindex 특성을 설정합니다. |
set |
접근성을 위해 구성 요소 제목을 설정합니다. iframe의 경우 이 메서드는 iframe 제목을 변경합니다. |
생성자 세부 정보
QuickCreate(Service, HTMLElement, IQuickCreateConfiguration, boolean, boolean)
new QuickCreate(service: Service, element: HTMLElement, config: IQuickCreateConfiguration, phasedRender?: boolean, isBootstrap?: boolean)
매개 변수
- service
- Service
- element
-
HTMLElement
- config
- IQuickCreateConfiguration
- phasedRender
-
boolean
- isBootstrap
-
boolean
메서드 세부 정보
getId()
getId 추상 함수 빠른 만들기를 재정의할 때 ID가 필요하지 않습니다.
function getId(): string
반환
string
validate(IEmbedConfigurationBase)
보고서 구성 만들기의 유효성을 검사합니다.
function validate(config: IEmbedConfigurationBase): IError[]
매개 변수
- config
- IEmbedConfigurationBase
반환
IError[]
상속된 메서드 세부 정보
exitFullscreen()
브라우저에 전체 화면 모드를 종료하도록 요청합니다.
function exitFullscreen()
상속된 위치에서 Embed.exitFullscreen
fullscreen()
전체 화면 모드에서 구성 요소의 iframe을 렌더링하도록 브라우저에 요청합니다.
function fullscreen()
상속된 위치에서 Embed.fullscreen
getCorrelationId()
현재 포함 세션의 correlationId를 가져옵니다.
// Get the correlationId for the current embed session
report.getCorrelationId()
.then(correlationId => {
...
});
function getCorrelationId(): Promise<string>
반환
Promise<string>
상속된 위치에서 Embed.getCorrelationId
off<T>(string, IEventHandler<T>)
처리기 목록에서 하나 이상의 이벤트 처리기를 제거합니다. 기존 핸들 함수에 대한 참조를 지정한 경우 특정 처리기를 제거합니다. 처리기를 지정하지 않으면 지정된 이벤트 이름에 대한 모든 처리기를 제거합니다.
report.off('pageChanged')
or
const logHandler = function (event) {
console.log(event);
};
report.off('pageChanged', logHandler);
function off<T>(eventName: string, handler?: IEventHandler<T>)
매개 변수
- eventName
-
string
- handler
-
IEventHandler<T>
상속된 위치에서 Embed.off
on<T>(string, IEventHandler<T>)
특정 이벤트에 대한 이벤트 처리기를 추가합니다.
report.on('pageChanged', (event) => {
console.log('PageChanged: ', event.page.name);
});
function on<T>(eventName: string, handler: IEventHandler<T>)
매개 변수
- eventName
-
string
- handler
-
IEventHandler<T>
상속된 위치에서 Embed.on
reload()
기존 구성을 사용하여 포함을 다시 로드합니다. 예를 들어 보고서의 경우 모든 필터를 효과적으로 지우고 첫 번째 페이지를 활성화하여 보고서를 로드된 상태로 다시 설정하는 시뮬레이션을 수행합니다.
report.reload();
function reload(): Promise<void>
반환
Promise<void>
상속된 위치에서 Embed.reload
removeComponentTabIndex(number)
요소의 tabindex 특성을 제거합니다.
function removeComponentTabIndex(_tabIndex?: number)
매개 변수
- _tabIndex
-
number
상속된 위치에서 Embed.removeComponentTabIndex
save()
보고서를 저장합니다.
function save(): Promise<void>
반환
Promise<void>
상속된 위치에서 Embed.save
saveAs(ISaveAsParameters)
SaveAs 보고서.
function saveAs(saveAsParameters: ISaveAsParameters): Promise<void>
매개 변수
- saveAsParameters
- ISaveAsParameters
반환
Promise<void>
상속된 위치에서 Embed.saveAs
setAccessToken(string)
accessToken을 설정합니다.
function setAccessToken(accessToken: string): Promise<void>
매개 변수
- accessToken
-
string
반환
Promise<void>
상속된 위치에서 Embed.setAccessToken
setComponentTabIndex(number)
요소의 tabindex 특성을 설정합니다.
function setComponentTabIndex(tabIndex?: number)
매개 변수
- tabIndex
-
number
상속된 위치에서 Embed.setComponentTabIndex
setComponentTitle(string)
접근성을 위해 구성 요소 제목을 설정합니다. iframe의 경우 이 메서드는 iframe 제목을 변경합니다.
function setComponentTitle(title: string)
매개 변수
- title
-
string
상속된 위치에서 Embed.setComponentTitle