expression

To throw one's toys out of the pram.

Theme: moderation Keyword: child

means

To react to disappointment with an immature display of anger (British informal).

Example

When the vote went against him, he threw his toys out of the pram.