---
sourceDocument: 브라질 직원 서비스 관리
sourceDocumentLink: https://servicenow-prod.fluidtopics.net/r/ko-KR/employee-service-management

 Release :

    - brazil

ft:locale :

    - ko-KR

ft:publication_title :

    - 브라질 직원 서비스 관리

ft:clusterId :

    - emplsm

bundleId :

    - emplsm

workflow :

    - Employee


---

# 카드 구성 예

# 카드 구성 예 {#ariaid-title1}

릴리스 버전: Brazil  
업데이트 날짜 2026년 09월 10일  
![](https://www.servicenow.com/docs/portal-asset/ico-clock) 소요 시간: 7분  
직장 카드 구성에 버튼, 필드 및 섹션을 추가합니다.
주:  
다음 예는 에서 워크플레이스 코어카드 구성을 사용자 지정하는 방법입니다. 카드 구성에 대한 자세한 내용은 다음 문서를 참조하십시오 [직장 카드 구성](https://servicenow-prod.fluidtopics.net/uUrH5Q12icTABZi6UAr0Iw "직장 애플리케이션에서 사용할 직장 카드를 생성합니다.").

## 카드 스타일 사용자 지정 {#card-configuration-examples__section_yhf_2qg_g3c}

다음으로 이동 모두서비스 포털CSS그런 다음 기본 설정에 따라 wsdConfigurableCard 기록을 사용자 지정합니다. 사용자 지정하려는 카드 유형에 따라 스타일을 재정의할 수 있습니다. 예:

    /* Customizing the profile image size for the user card */
    .wsdConfigurableUserCard {
        .profile-image {
            width: 100px;
            height: 100px;
            border-radius: 35px;
        }
    }

## 섹션 추가 {#card-configuration-examples__section_n5b_cqg_g3c}

템플릿(매크로) XML 코드에서 섹션을 만들려는 요소를 추가 `<div>` 한 다음 `<div>`. 예:

    <!-- The following section is to add a phone number -->
    <div class="section support-section" ng-if="data.contact">
                <div class="section-label">
                    <div class="label-text">{{ translations.space.supportSectionTitle }}</div>
                </div>
                <!-- The following link specifies the phone number fetched from the data -->
                <a href="tel:{{ data.phone }}" class="section-content section-content-text">
                    {{ data.phone }}
                </a>
            </div>

            <!-- The following div inserts a divider between sections -->
            <div class="divider" ng-if="mustDisplayDivider()"></div>

            <!-- The following section is to add extra services -->
            <div class="section book-services-section" ng-if="data.link">
                <div class="section-label">
                    <div class="label-text">{{ translations.space.bookServicesSectionTitle }}</div>
                </div>
                <!-- The following link specifies the services link fetched from the data -->
                <a href="{{ data.link }}" class="section-content section-content-link">
                    {{ data.link }}
                </a>
            </div>

## 단추 추가 {#card-configuration-examples__section_yd5_cqg_g3c}

WSDConfigurableCardDataInjector 스크립트 포함에 버튼에 대한 논리를 추가합니다. `extendCardsData` 메서드 내에 논리를 추가해야 합니다. 예를 들어 케이스 생성으로 리디렉션되는 버튼을 추가합니다.

    /* Adding functionality for a custom button */
    extendCardsData: function(cards) {
        cards.forEach(function (card) {
            if (card.type === 'space') {
                card.data.actions.secondary.push({
                    label: gs.getMessage('Report a cleaning issue'),
                    id: 'cleaning_request',
                    action: 'redirect',
                    icon: 'fa-broom',
                    url: '/sp?id=sc_cat_item&sys_id=<itemId>&sysparm_space=' + card.data.sysId,
                    target: '_self', isDisabled: false, type: 'secondary'
                    });
                }
            });
        return cards;
    });

주:  
버튼은 카드의 `기본 작업 버튼` 섹션에 표시됩니다.

## 필드 추가 {#card-configuration-examples__section_nxb_dqg_g3c}

템플릿(매크로) XML 코드에서 새 필드가 필요한 섹션에 요소를 추가합니다 `<div>` .

그런 다음 논리를 추가하여 WSDConfigurableCardDataInjector 스크립트 포함에 필드 값을 채울 수 있습니다. 예:

    <!-- Adding a new row with a new field -->
    <div class="info-row" ng-if="data.usable_size_sq_meter">
    <div class="info-icon">
    <i class="fa fa-arrows-alt"></i>
    </div>
    <div class="info-text">{{ data.usable_size_sq_meter }}m square</div>
    </div>

    /* Custom logic to populate the field value */
    cards.forEach( function(card) {
        if (card.type ==='space') {
            var spaceGr.get(card.data.sysId)) {
                card.data.usable_size_sq_meter = spaceGr.getValue('usable_size_sq_meter');
            }
        }
    });

## 리디렉션 단추 추가 {#card-configuration-examples__section_m1y_jlc_1kc}

`작업 == 'redirect'` 및 URL을 사용하여 WSD 위치 카드에 리디렉션 버튼(예: KB 문서 또는 외부 포털)을 추가할 수 있습니다. target 속성을 사용하여 동일한 탭이나 새 탭에서 링크를 열 수 있습니다.

    cards.forEach(function(card) {
        if (card.type === 'space') {
            // Internal KB article (same tab)
            card.data.actions.secondary.push({
                label: 'Custom Action',
                id: 'custom_action',
                action: 'custom_action',
                label: gs.getMessage('Workplace guidelines'),
                id: 'kb_guidelines',
                action: 'redirect',
                url: '/kb?id=kb_article_view&sysparm_article=KB0012345',
                isDisabled: false,
                type: 'secondary'
            });
            // External portal (new tab)
            card.data.actions.secondary.push({
                label: gs.getMessage('Catering portal'),
                id: 'catering_portal',
                action: 'redirect',
                url: 'https://catering.example.com/order',
                target: '_blank',
                isDisabled: false,
                type: 'secondary'
            });
        }
    });

## 카드에 대한 사용자 지정 논리 추가 {#card-configuration-examples__section_zy5_jtt_g3c}

WSDConfigurableCardDataInjector 스크립트 포함에서 카드에 대한 사용자 지정 논리를 추가할 수 있습니다.

extendCardsData 메서드에서 새 섹션에 대한 데이터를 카드에 제공하는 사용자 지정 논리를 추가합니다. 예를 들어, 건물 이름을 기준으로 카드 제목을 수정하려면 다음을 수행합니다.

    extendCardsData: function(cards) {
        /* Modify card title based on the building display name */
        cards.forEach(function(card) {
            if (card.data.building && card.data.building.displayValue === 'HQ') {
            card.data.title = '[HQ] ' + card.data.title;
            }
        });
        return cards;
    },

## 요소 숨기기 {#card-configuration-examples__section_aky_xqg_g3c}

템플릿(매크로) XML 코드에서 제거할 섹션의 XML 태그를 삭제하거나 주석 블록으로 둘러쌉니다. 예:

    <!-- The following section is in a comment block, therefore hidden on the card -->
    <!-- <div class="info-row" ng-if="data.usable_size_sq_meter">
    <div class="info-icon">
    <i class="fa fa-arrows-alt"></i>
    </div>
    <div class="info-text">{{ data.usable_size_sq_meter }}m square</div>
    </div> -->

요소를 숨긴 후에는 사용자 지정 논리를 제거하거나 주석 블록으로 둘러싸야 합니다. 예:

    /* The following method is in a comment block, therefore is not run on the card */
    /* cards.forEach( function(card) {
    if (card.type ==='space') {
    var spaceGr.get(card.data.sysId)) {
    card.data.usable_size_sq_meter = spaceGr.getValue('usable_size_sq_meter');
    }
    }
    }); */

**관련 참조**   

* [워크플레이스 코어와 설치되는 구성요소](https://servicenow-prod.fluidtopics.net/Ab2sBQhbUYN8VPWCgAlA0g "애플리케이션을 설치 워크플레이스 코어 하면 사용자 역할, 예약된 작업, 테이블, 비즈니스 규칙 등 여러 유형의 구성요소가 설치됩니다.")
* [워크플레이스 코어 앱과 함께 설치되는 속성](https://servicenow-prod.fluidtopics.net/j3LVi_JtgZxg2E~Qh4b9DQ "워크플레이스 코어 에서 사용할 수 있는 속성을 사용자 지정합니다.")
* [직장 프로파일 위치 할당 양식](https://servicenow-prod.fluidtopics.net/ZKmPXXmECCtplW6fvD1tZw "위치 할당 양식을 사용하면 직장 프로파일에 위치 또는 인접을 할당할 수 있습니다.")
* [직장 위치 할당 변칙 유형](https://servicenow-prod.fluidtopics.net/WSsjUcNbsS_BXiHV2p7Jhw "예외는 직장 프로필과 직장 위치의 할당 또는 할당이 일치하지 않을 때 발생합니다.")
* [공간 예약 양식](https://servicenow-prod.fluidtopics.net/MMALRMlWCALKQoYwhvgcgA "공간 예약 양식은 예약 위치와 기간을 선택하는 데 도움이 됩니다.")

