Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

[Notifier][Slack] Add fields on Slack Section block#36154

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
fabpot merged 1 commit intosymfony:masterfrombirkof:slack-fields-section-block
Mar 23, 2020

Conversation

birkof
Copy link
Contributor

@birkofbirkof commentedMar 21, 2020
edited by OskarStark
Loading

QA
Branch?master
Bug fix?no
New feature?yes
Deprecations?no
Tickets
LicenseMIT
Doc PR

Addedfields field on section block.

An array of text objects. Any text objects included with fields will be rendered in a compact format that allows for 2 columns of side-by-side text. Maximum number of items is 10. Maximum length for the text in each item is 2000 characters.

Example of use:

$slackOptions = (newSlackOptions())            ->block((newSlackSectionBlock())->text('My message'))            ->block(newSlackDividerBlock())            ->block(                (newSlackSectionBlock())                    ->field('*Max Rating*')                    ->field('5.0')                    ->field('*Min Rating*')                    ->field('1.0')            );

Expected output:

Screen Shot 2020-03-21 at 09 57 36

@fabpot
Copy link
Member

Thank you@birkof.

birkof reacted with thumbs up emoji

@fabpotfabpot merged commit0076ed5 intosymfony:masterMar 23, 2020
@birkofbirkof deleted the slack-fields-section-block branchApril 4, 2020 20:29
@birkof
Copy link
ContributorAuthor

@fabpot due some limitations on these fields, I have added one minor fix:#36347

@nicolas-grekasnicolas-grekas modified the milestones:next,5.1May 4, 2020
@fabpotfabpot mentioned this pull requestMay 5, 2020
javiereguiluz added a commit to symfony/symfony-docs that referenced this pull requestApr 15, 2021
…tark)This PR was merged into the 5.2 branch.Discussion----------[Notifier] Docs for Slack options field() methodCloses#13398Example and image taken fromsymfony/symfony#36154 (comment)cc `@birkof` as you provided this featureCommits-------d39b477 Docs for Slack options field() method
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers

@fabpotfabpotfabpot approved these changes

@nicolas-grekasnicolas-grekasnicolas-grekas approved these changes

Assignees
No one assigned
Projects
None yet
Milestone
5.1
Development

Successfully merging this pull request may close these issues.

4 participants
@birkof@fabpot@nicolas-grekas@carsonbot

[8]ページ先頭

©2009-2025 Movatter.jp